copyWith method
Creates a copy of this instance, replacing the specified fields.
Implementation
GenerateDartModel copyWith({
String? className,
Set<dynamic>? fields,
bool? shouldInherit,
String? inheritanceConstructor,
String? keyStringCase,
String? description,
}) {
return GenerateDartModel.assertRequired(
className: className ?? this.className,
fields: fields ?? this.fields,
shouldInherit: shouldInherit ?? this.shouldInherit,
inheritanceConstructor:
inheritanceConstructor ?? this.inheritanceConstructor,
keyStringCase: keyStringCase ?? this.keyStringCase,
description: description ?? this.description,
);
}