sendOpt method
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,
});
}