WebNotificationBuilder typedef

WebNotificationBuilder = Future<bool?> Function(Map<String, dynamic> model)

Takes over createNotification on the web for the models an add-on owns: answers null when the model isn't its own, true / false when it handled it, or throws to reject it. It may update the map's content (a new map): the created / displayed events of a handled model report it.

Implementation

typedef WebNotificationBuilder = Future<bool?> Function(
    Map<String, dynamic> model);