copyWith method
LoginState
copyWith({
- BuildContext? context,
- bool? loader,
- String? username,
- String? password,
- bool? isPasswordVisible,
Implementation
LoginState copyWith({
BuildContext? context,
bool? loader,
String? username,
String? password,
bool? isPasswordVisible,
}) {
return LoginState(
context: context ?? this.context,
loader: loader ?? this.loader,
username: username ?? this.username,
password: password ?? this.password,
isPasswordVisible: isPasswordVisible ?? this.isPasswordVisible,
);
}