getCurrentUser method

  1. @override
Future<PassageUser?> getCurrentUser()
override

Implementation

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