copyWith method

ValidationError copyWith({
  1. List<Object>? loc,
  2. String? msg,
  3. String? type,
})

Implementation

ValidationError copyWith({List<Object>? loc, String? msg, String? type}) {
  return ValidationError(
      loc: loc ?? this.loc, msg: msg ?? this.msg, type: type ?? this.type);
}