copyWith method
Constraints
copyWith(
{ - bool? required,
- bool? optional,
- bool? computed,
- bool? sensitive,
- bool? writeOnly,
- bool? forceNew,
- List<String>? enumValues,
- String? regex,
- num? min,
- num? max,
- int? minLength,
- int? maxLength,
- String? deprecationMessage,
})
Implementation
Constraints copyWith({
bool? required,
bool? optional,
bool? computed,
bool? sensitive,
bool? writeOnly,
bool? forceNew,
List<String>? enumValues,
String? regex,
num? min,
num? max,
int? minLength,
int? maxLength,
String? deprecationMessage,
}) => Constraints(
required: required ?? this.required,
optional: optional ?? this.optional,
computed: computed ?? this.computed,
sensitive: sensitive ?? this.sensitive,
writeOnly: writeOnly ?? this.writeOnly,
forceNew: forceNew ?? this.forceNew,
enumValues: enumValues ?? this.enumValues,
regex: regex ?? this.regex,
min: min ?? this.min,
max: max ?? this.max,
minLength: minLength ?? this.minLength,
maxLength: maxLength ?? this.maxLength,
deprecationMessage: deprecationMessage ?? this.deprecationMessage,
);