Credentials class
Constructors
- Credentials.ThirdPartyAuthentication(String token, ThirdPartyProvider provider)
-
Instantiates the credentials to log in using a third-party authentication provider.
The
provider
is the provider using to log in andtoken
is the token received upon completing the third-party authentication flow.factory - Credentials.UsernameLongToken(String username, String token)
-
Instantiates the credentials to log in using a username and a long-lived token.
The
username
can be:factory - Credentials.UsernamePassword(String username, String password)
-
Instantiates the credentials to log in using a username and a password.
The
username
can be:factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encode(
Credentials value) → Map< String, dynamic>