handleRegistrationLink method

  1. @override
Future<IAMPASSUser?> handleRegistrationLink(
  1. String registrationLink,
  2. String notificationToken
)
override

Implementation

@override
Future<IAMPASSUser?> handleRegistrationLink(
    String registrationLink, String notificationToken) async {
  Map<String, String> args = {
    "registration_link": registrationLink,
    "notification_token": notificationToken
  };

  final result =
      await methodChannel.invokeMethod<String>("RegistrationLink", args);

  if (result != null) {
    Map<String, dynamic> valueMap = jsonDecode(result);
    IAMPASSUser? s = IAMPASSUser.fromJson(valueMap);
    return s;
  }
  return null;
}