get method
get Password Credential
mediation: default is Mediation.Silent return: a PasswordCredential, or null if cannot get single Password from Credential Store
Implementation
Future<PasswordCredential?> get(
{Mediation mediation = Mediation.Silent}) async {
String? result = await _channel
.invokeMethod("get", <String, dynamic>{"mediation": mediation.string});
PasswordCredential? credential;
if (result != null) {
credential = PasswordCredential.fromJson(jsonDecode(result));
}
return credential;
}