registerNotificationHandler<T extends Notification?> method
Registers a notification handler named name on this server.
Implementation
void registerNotificationHandler<T extends Notification?>(
String name,
void Function(T) impl,
) => _peer.registerMethod(
name,
(Parameters p) => impl(
(p.value as Map? ?? <String, Object?>{}).cast<String, Object?>() as T,
),
);