registerNotification method

  1. @override
void registerNotification({
  1. required String event,
  2. required Future<Map<String, Object>> onEvent(
    1. Plugin,
    2. Map<String, Object>
    ),
})

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);
}