BasicAuthentication class

Basic authentication.

Constructors

BasicAuthentication.new({required String password, required String username})
Creates an instance of BasicAuthentication

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
Check if the authentication is valid.
no setter
password String
Password used for authentication.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
Username used for authentication.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHeader({String headerName = 'Authorization'}) Map<String, dynamic>
Get request header.
toString() String
A string representation of this object.
inherited

Operators

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