merge method

  1. @override
FastListItemCategory<T> merge(
  1. covariant FastListItemCategory<T> model
)
override

Creates a new TModel where each properties from this object has been merged with the matching properties from the other object.

For example:

var myModel3 = myModel1.merge(myModel2);

Implementation

@override
FastListItemCategory<T> merge(covariant FastListItemCategory<T> model) {
  return copyWith(
    labelText: model.labelText,
    valueText: model.valueText,
    weight: model.weight,
    items: model.items,
  );
}