W3cubDocs

/Dart 2

PasswordCredential constructor

PasswordCredential(dynamic data_OR_form)

Implementation

factory PasswordCredential(data_OR_form) {
  if ((data_OR_form is Map)) {
    var data_1 = convertDartToNative_Dictionary(data_OR_form);
    return PasswordCredential._create_1(data_1);
  }
  if ((data_OR_form is FormElement)) {
    return PasswordCredential._create_2(data_OR_form);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/PasswordCredential/PasswordCredential.html