toString method
Creates client class string representation.
If password was supplied add to representation hidden password to indicate this client is connected to the server with authorization.
Implementation
@override
String toString() {
if (_password != null) {
// ignore: lines_longer_than_80_chars
return "<DaapClient: {host: $host, port: $port, password: ${"*" * _password!.length}}>";
} else {
return "<DaapClient: {host: $host, port: $port}>";
}
}