setData method

FirebaseMpnBuilder setData(
  1. Map<String, String>? data
)

Sets sub-fields of the webpush.data field.

  • data A map to be used for sub-fields of the webpush.data field, or null to clear it.

Returns this MpnBuilder object, for fluent use.

Implementation

FirebaseMpnBuilder setData(Map<String, String>? data) {
  return _setData(jsify(data));
}