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