copyWith method
ModelField
copyWith({
- String? name,
- ModelFieldType? type,
- bool? isRequired,
- bool? isArray,
- bool? isReadOnly,
- ModelAssociation? association,
- List<
AuthRule> ? authRules,
Implementation
ModelField copyWith({
String? name,
ModelFieldType? type,
bool? isRequired,
bool? isArray,
bool? isReadOnly,
ModelAssociation? association,
List<AuthRule>? authRules,
}) {
return ModelField(
name: name ?? this.name,
type: type ?? this.type,
isRequired: isRequired ?? this.isRequired,
isArray: isArray ?? this.isArray,
isReadOnly: isReadOnly ?? this.isReadOnly,
association: association ?? this.association,
authRules: authRules ?? this.authRules,
);
}