ASWHeader class sealed
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ASWHeader.basic({Map<
String, String> ? headers}) -
constfactory
-
ASWHeader.data({Map<
String, String> ? headers}) -
constfactory
-
ASWHeader.formData({Map<
String, String> ? headers}) -
constfactory
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
Aswitch
-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 ofmap
that fallback to returningnull
. -
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 ofmap
that fallback to returningorElse
. -
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 ofwhen
that fallback to anorElse
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
Aswitch
-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 ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited