copyWith method

NeuronFormState<T> copyWith({
  1. T? value,
  2. String? error,
  3. bool? isDirty,
  4. bool? isTouched,
})

Implementation

NeuronFormState<T> copyWith({
  T? value,
  String? error,
  bool? isDirty,
  bool? isTouched,
}) {
  return NeuronFormState<T>(
    value: value ?? this.value,
    error: error,
    isDirty: isDirty ?? this.isDirty,
    isTouched: isTouched ?? this.isTouched,
  );
}