saveProfile method

  1. @override
Future saveProfile(
  1. String name,
  2. String email
)
override

Implementation

@override
Future<dynamic> saveProfile(String name, String email) async {
  dynamic result;
  try {
    result = await mirrorFlyMethodChannel.invokeMethod("updateProfile", {
      "name": name,
      "email": email,
    });
    debugPrint('RESULT $result');
    return result;
  } on PlatformException catch (e) {
    debugPrint("er $e");
    return result;
  }
}