identifierExists method

  1. @override
Future<PassageUser?> identifierExists(
  1. String identifier
)
override

Implementation

@override
Future<PassageUser?> identifierExists(String identifier) async {
  try {
    final jsonString = await methodChannel
        .invokeMethod<String>('identifierExists', {'identifier': identifier});
    return jsonString == null ? null : PassageUser.fromJson(jsonString);
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}