authenticate method

Future<void> authenticate({
  1. String? username,
  2. String? password,
})

Provide credentials for HTTP authentication.

To disable authentication, pass null.

Implementation

Future<void> authenticate({String? username, String? password}) {
  return _frameManager.networkManager.authenticate(
      username == null ? null : Credentials(username, password));
}