checkUserExists static method

Future<bool?> checkUserExists({
  1. required String userId,
})

Check if a user exists in the database

Implementation

static Future<bool?> checkUserExists({required String userId}) async {
  try {
    return await _channel.invokeMethod('checkUserExists', <String, String>{'id': userId});
  } catch (e) {
    return false;
  }
}