copyWith method

LoginState copyWith({
  1. BuildContext? context,
  2. bool? loader,
  3. String? username,
  4. String? password,
  5. 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,
  );
}