basicAuth method

Method basicAuth(
  1. String username,
  2. String password
)

Implementation

Method basicAuth(String username, String password) {
  getAuthHeaders['Basic'] = const codec.Base64Codec.urlSafe()
      .encode('${username}:${password}'.codeUnits);
  return this;
}