sendOpt method

Future<void> sendOpt({
  1. required bool optIn,
})

Sends opt-in or opt-out status to the native layer.

Implementation

Future<void> sendOpt({
  required bool optIn,
}) async {
  NLogger.d("Setting opt-in status...");
  await _nudgeCoreV2NativeServices.invokeNativeMethod('nudge_send_opt', {
    'opt': optIn,
  });
}