password property

String password

A string containing the password specified before the domain name.

MDN reference

Implementation

String get password => switch (_uri.userInfo.split(':')) {
      Iterable(length: 2, last: final password) => password,
      _ => '',
    };
void password=(String value)

Implementation

set password(String value) {
  if (value.isEmpty) return;
  _uri = _uri.replace(userInfo: '$username:$value');
}