getHeaders method

Map<String, String>? getHeaders()

Gets sub-fields of the webpush.headers field.

Returns a map with sub-fields of the webpush.headers field, or null if absent.

Implementation

Map<String, String>? getHeaders() {
  return (dartify(_getHeaders()) as Map<dynamic, dynamic>).cast<String, String>();
}