setCustomData method

ApnsMpnBuilder setCustomData(
  1. Map<String, dynamic>? val
)

Sets fields in the root of the notification format (excluding aps).

  • val: A dictionary to be used for fields in the root of the notification format (excluding aps), or nil to clear them.

Implementation

ApnsMpnBuilder setCustomData(Map<String, dynamic>? val) {
  _customData = val == null ? null : Map.from(val);
  return this;
}