updateBindings method

  1. @override
Future<NotificationUpdateResult> updateBindings({
  1. required int id,
  2. required Map<String, String> bindings,
})

Updates any data binding in the given notification.

Instead of a text value, you can replace any value in the <binding> element with {name}, and then use this function to update that value by passing data: {'name': value}.

Implementation

@override
Future<NotificationUpdateResult> updateBindings({
  required int id,
  required Map<String, String> bindings,
}) async =>
    NotificationUpdateResult.success;