HttpxCredentials class

Implementers
Annotations
  • @freezed

Constructors

HttpxCredentials.basic({required String realm, required String username, required String password, @Default(false) bool proxyCredentials})
const
factory
HttpxCredentials.bearer({String? realm, required String accessToken, @Default(false) bool proxyCredentials})
const
factory
HttpxCredentials.fromOAuth2({String? realm, required String tokenType, required String accessToken, bool proxyCredentials = false})
factory

Properties

copyWith → $HttpxCredentialsCopyWith<HttpxCredentials>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
proxyCredentials bool
no setterinherited
realm String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult basic(HttpxCredentialsBasic value), required TResult bearer(HttpxCredentialsBearer value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? basic(HttpxCredentialsBasic value)?, TResult? bearer(HttpxCredentialsBearer value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult basic(HttpxCredentialsBasic value)?, TResult bearer(HttpxCredentialsBearer value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult basic(String realm, String username, String password, bool proxyCredentials)?, TResult bearer(String? realm, String accessToken, bool proxyCredentials)?, required TResult orElse()}) → TResult
inherited
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 basic(String realm, String username, String password, bool proxyCredentials), required TResult bearer(String? realm, String accessToken, bool proxyCredentials)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? basic(String realm, String username, String password, bool proxyCredentials)?, TResult? bearer(String? realm, String accessToken, bool proxyCredentials)?}) → TResult?
inherited

Operators

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