copyWith method
ValidatedFieldState
copyWith({
- String? value,
- String? errorMessage,
- ValidatedFieldStatus? status,
- bool? isFocused,
- TextEditingController? controller,
Implementation
ValidatedFieldState copyWith({
String? value,
String? errorMessage,
ValidatedFieldStatus? status,
bool? isFocused,
TextEditingController? controller,
}) {
return ValidatedFieldState(
errorMessage: errorMessage ?? this.errorMessage,
status: status ?? this.status,
value: value ?? this.value,
validator: validator,
controller: controller ?? this.controller,
);
}