registerUser method

  1. @override
Future registerUser(
  1. String userIdentifier, {
  2. String token = "",
})
override

Implementation

@override
Future<dynamic> registerUser(String userIdentifier,
    {String token = ""}) async {
  dynamic registerResponse;
  try {
    registerResponse = await mirrorFlyMethodChannel.invokeMethod(
        'register_user', {"userIdentifier": userIdentifier, "token": token});
    debugPrint("Register Result ==> $registerResponse");
    return registerResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}