registerNotification method
void
registerNotification({})
Implementation
@override
void registerNotification(
{required String event,
required Future<Map<String, Object>> Function(Plugin, Map<String, Object>)
onEvent}) {
notifications[event] = RPCNotification(method: event, callback: onEvent);
}