copyWith method

Val copyWith({
  1. String? error,
  2. bool? isFocus,
})

Implementation

Val copyWith({
  String? error,
  bool? isFocus,
}) {
  return Val(
    error: (error?.isEmpty ?? false ? null : error ?? this.error),
    isFocus: isFocus ?? this.isFocus,
  );
}