sendEventToApp static method

Future<Type?> sendEventToApp(
  1. dynamic event
)

Implementation

static Future<Type?> sendEventToApp(dynamic event) async => !(await isBackgroundServiceRunning)
    ? throw Exception("Background Service is not running")
    : await Untitled.Untitled_Constants.backgroundMethodChannel.invokeMethod("com.example.untitled_sendEventToApp", event);