copyWith method

  1. @override
FastInternalCategory copyWith({
  1. String? labelText,
  2. String? valueText,
  3. double? weight,
})
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
FastInternalCategory copyWith({
  String? labelText,
  String? valueText,
  double? weight,
}) {
  return FastInternalCategory(
    labelText: labelText ?? this.labelText,
    valueText: valueText ?? this.valueText,
    weight: weight ?? this.weight,
  );
}