Authentication class Null safety

Authentication information.

Constructors

Authentication.anonymous()
Creates an Authentication instance that has no authentication.
Authentication.basic(String? username, String? password)
Creates an Authentication instance that uses a username and password.
Authentication.withToken(String? token)
Creates an Authentication instance that uses the specified OAuth2 token.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isAnonymous bool
Anonymous Authentication Flag
read-only
isBasic bool
Basic Authentication Flag
read-only
isToken bool
Token Authentication Flag
read-only
password String?
GitHub Password
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
token String?
OAuth2 Token
final
username String?
GitHub Username
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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