copyWith method

  1. @override
FastSettingsCategoryDescriptor copyWith({
  1. Map<String, FastFormFieldDescriptor>? fields,
  2. String? titleText,
  3. bool? show,
})
override

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,
  );
}