ASWHeader class sealed

Available extensions
Annotations
  • @freezed

Constructors

ASWHeader.basic({Map<String, String>? headers})
const
factory
ASWHeader.data({Map<String, String>? headers})
const
factory
ASWHeader.formData({Map<String, String>? headers})
const
factory

Properties

copyWith → $ASWHeaderCopyWith<ASWHeader>
Create a copy of ASWHeader with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toMap Map<String, String>

Available on ASWHeader, provided by the ASWHeaderEx extension

no setter

Methods

map<TResult extends Object?>({required TResult formData(_FormData value), required TResult basic(_Basic value), required TResult data(_Data value)}) → TResult

Available on ASWHeader, provided by the ASWHeaderPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? formData(_FormData value)?, TResult? basic(_Basic value)?, TResult? data(_Data value)?}) → TResult?

Available on ASWHeader, provided by the ASWHeaderPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult formData(_FormData value)?, TResult basic(_Basic value)?, TResult data(_Data value)?, required TResult orElse()}) → TResult

Available on ASWHeader, provided by the ASWHeaderPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult formData(Map<String, String>? headers)?, TResult basic(Map<String, String>? headers)?, TResult data(Map<String, String>? headers)?, required TResult orElse()}) → TResult

Available on ASWHeader, provided by the ASWHeaderPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult formData(Map<String, String>? headers), required TResult basic(Map<String, String>? headers), required TResult data(Map<String, String>? headers)}) → TResult

Available on ASWHeader, provided by the ASWHeaderPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? formData(Map<String, String>? headers)?, TResult? basic(Map<String, String>? headers)?, TResult? data(Map<String, String>? headers)?}) → TResult?

Available on ASWHeader, provided by the ASWHeaderPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited