buildAuthorizationHeaderLine method
Builds the Authorization header.
Uses the standard Base64 alphabet (not the URL-safe one) and encodes
the username and password as UTF-8 (RFC 7617).
Implementation
@override
String buildAuthorizationHeaderLine() {
var payload = '$username:$password';
var encode = base64.encode(utf8.encode(payload));
return 'Basic $encode';
}