copyWith method

ValidationFailureViewModel copyWith({
  1. String? propertyName,
  2. String? errorMessage,
  3. String? errorCode,
})

Implementation

ValidationFailureViewModel copyWith(
    {String? propertyName, String? errorMessage, String? errorCode}) {
  return ValidationFailureViewModel(
      propertyName: propertyName ?? this.propertyName,
      errorMessage: errorMessage ?? this.errorMessage,
      errorCode: errorCode ?? this.errorCode);
}