authInfo property
subclass should call super and merge the data when inherit.
Implementation
@mustCallSuper
AuthInfo get authInfo {
return _authInfo;
}
Implementation
@mustCallSuper
set authInfo(AuthInfo authInfo) {
_authInfo.mergeWith(
username: authInfo.username.isEmpty ? _authInfo.username : authInfo.username,
password: authInfo.password.isEmpty ? _authInfo.password : authInfo.password,
authString: authInfo.authString.isEmpty ? _authInfo.authString : authInfo.authString,);
}