changePhone method

  1. @override
Future<String> changePhone(
  1. String newPhone
)
override

Implementation

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