registerUser method
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;
}
}