NetworkRequest class Null safety

Implementers
Annotations
  • @freezed

Constructors

NetworkRequest.formSubmit({required String url, @Default({}) Map<String, String> headers, @Default(false) bool validate})
const
factory
NetworkRequest.fromJson(Map<String, Object?> json)
factory
NetworkRequest.http({required String url, @Default({}) Map<String, String> headers, String? method, String? bodyText, List<int>? bodyBytes, Map<String, Object>? bodyMap, @Default(false) bool streamedResponse})
const
factory

Properties

copyWith → $NetworkRequestCopyWith<NetworkRequest>
@JsonKey(ignore: true), read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
headers Map<String, String>
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url String
read-only, inherited

Methods

map<TResult extends Object?>({required TResult http(NetworkHttpRequest value), required TResult formSubmit(FormSubmitNetworkRequest value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? http(NetworkHttpRequest value)?, TResult? formSubmit(FormSubmitNetworkRequest value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult http(NetworkHttpRequest value)?, TResult formSubmit(FormSubmitNetworkRequest value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult http(String url, Map<String, String> headers, String? method, String? bodyText, List<int>? bodyBytes, Map<String, Object>? bodyMap, bool streamedResponse)?, TResult formSubmit(String url, Map<String, String> headers, bool validate)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult http(String url, Map<String, String> headers, String? method, String? bodyText, List<int>? bodyBytes, Map<String, Object>? bodyMap, bool streamedResponse), required TResult formSubmit(String url, Map<String, String> headers, bool validate)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? http(String url, Map<String, String> headers, String? method, String? bodyText, List<int>? bodyBytes, Map<String, Object>? bodyMap, bool streamedResponse)?, TResult? formSubmit(String url, Map<String, String> headers, bool validate)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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