copyWith method Null safety

SignInState copyWith(
  1. {FormzStatus? status,
  2. StudentCode? studentCode,
  3. Password? password,
  4. SignInFailure? error}
)

Implementation

SignInState copyWith({
  FormzStatus? status,
  StudentCode? studentCode,
  Password? password,
  SignInFailure? error,
}) {
  return SignInState(
    status: status ?? this.status,
    studentCode: studentCode ?? this.studentCode,
    password: password ?? this.password,
    error: error,
  );
}