registerAuth method

Future<void> registerAuth(
  1. dynamic callback(
    1. String? key
    )
)

Sets a callback for handling static keys.

Implementation

Future<void> registerAuth(
  Function(String? key) callback,
) async {
  nudgeAuthKeyCallback = callback;
  await _nudgeCoreV2NativeServices.invokeNativeMethod(
    'nudge_send_key_opt',
    {'opt': true},
  );
}