changeEmail method

  1. @override
Future<String> changeEmail(
  1. String newEmail
)
override

Implementation

@override
Future<String> changeEmail(String newEmail) async {
  try {
    final magicLinkId = await methodChannel
        .invokeMethod<String>('changeEmail', {'newEmail': newEmail});
    return magicLinkId!;
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}