copyWith method
Creates a copy of this TModel but with the given fields replaced with the new values.
For example:
var myModel2 = myModel1.copyWith(age: 42);
Implementation
@override
FastSettingsCategoryDescriptor copyWith({
Map<String, FastFormFieldDescriptor>? fields,
String? titleText,
bool? show,
}) {
return FastSettingsCategoryDescriptor(
titleText: titleText ?? this.titleText,
fields: fields ?? this.fields,
show: show ?? this.show,
);
}