password property
String
password
A string containing the password specified before the domain name.
Implementation
String get password => switch (_uri.userInfo.split(':')) {
Iterable(length: 2, last: final password) => password,
_ => '',
};
Implementation
set password(String value) {
if (value.isEmpty) return;
_uri = _uri.replace(userInfo: '$username:$value');
}