copyWith method
Implementation
FieldCubitState<T> copyWith({
T? value,
String? error,
bool? isErrorShown,
}) {
return FieldCubitState(
error: error,
value: value ?? this.value,
isErrorShown: isErrorShown ?? this.isErrorShown,
initialValue: initialValue,
);
}