OAuthFlows class abstract
Allows configuration of the supported OAuth Flows.
- Available extensions
- Annotations
-
- @freezed
Constructors
- OAuthFlows.new({OAuthFlow? implicit, OAuthFlow? password, OAuthFlow? clientCredentials, OAuthFlow? authorizationCode})
-
Creates an OAuthFlows object.
constfactory
-
OAuthFlows.fromJson(Map<
String, dynamic> json) -
Creates an OAuthFlows from a JSON object.
factory
Properties
-
Configuration for the OAuth Authorization Code flow.
no setterinherited
- clientCredentials → OAuthFlow?
-
Configuration for the OAuth Client Credentials flow.
no setterinherited
-
copyWith
→ $OAuthFlowsCopyWith<
OAuthFlows> -
Create a copy of OAuthFlows
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- implicit → OAuthFlow?
-
Configuration for the OAuth Implicit flow.
no setterinherited
- password → OAuthFlow?
-
Configuration for the OAuth Resource Owner Password flow.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_OAuthFlows value)) → TResult -
Available on OAuthFlows, provided by the OAuthFlowsPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_OAuthFlows value)?) → TResult? -
Available on OAuthFlows, provided by the OAuthFlowsPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_OAuthFlows value)?, {required TResult orElse()}) → TResult -
Available on OAuthFlows, provided by the OAuthFlowsPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(OAuthFlow? implicit, OAuthFlow? password, OAuthFlow? clientCredentials, OAuthFlow? authorizationCode)?, {required TResult orElse()}) → TResult -
Available on OAuthFlows, provided by the OAuthFlowsPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this OAuthFlows to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(OAuthFlow? implicit, OAuthFlow? password, OAuthFlow? clientCredentials, OAuthFlow? authorizationCode)) → TResult -
Available on OAuthFlows, provided by the OAuthFlowsPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(OAuthFlow? implicit, OAuthFlow? password, OAuthFlow? clientCredentials, OAuthFlow? authorizationCode)?) → TResult? -
Available on OAuthFlows, provided by the OAuthFlowsPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited