NetworkHttpRequest class Null safety

Implemented types

Constructors

NetworkHttpRequest({required String url, Map<String, String> headers, String? method, String? bodyText, List<int>? bodyBytes, Map<String, Object>? bodyMap, bool streamedResponse})
const
factory
NetworkHttpRequest.fromJson(Map<String, dynamic> json)
factory

Properties

bodyBytes List<int>?
read-only
bodyMap Map<String, Object>?
read-only
bodyText String?
read-only
copyWith → _$$NetworkHttpRequestCopyWith<_$NetworkHttpRequest>
@JsonKey(ignore: true), read-only, override
hashCode int
The hash code for this object.
read-only, inherited
headers Map<String, String>
read-only, override
method String?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
streamedResponse bool
read-only
url String
read-only, override

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