deleteCredential method

Future<bool> deleteCredential({
  1. required String id,
  2. String? accountType,
  3. String? name,
  4. String? password,
  5. String? profilePictureUri,
})

Implementation

Future<bool> deleteCredential({
  // Value you want to save
  required String id,
  // Identifier url, should be you App's website url
  String? accountType,
  String? name,
  String? password,
  String? profilePictureUri,
}) async {
  if (_isAndroid(Methods.deleteCredential)) {
    try {
      final res = await _channel.invokeMethod(Methods.deleteCredential, {
        'id': id,
        'accountType': accountType,
        'name': name,
        'password': password,
        'profilePictureUri': profilePictureUri,
      });
      return res == true;
    } catch (error) {
      debugPrint('Pinput/SmartAuth: deleteCredential failed: $error');
      return false;
    }
  }
  return false;
}