merge method

  1. @override
FastItem<T> merge(
  1. covariant FastItem<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
FastItem<T> merge(covariant FastItem<T> model) {
  return copyWith(
    normalizedLabelText: model.normalizedLabelText,
    descriptionText: model.descriptionText,
    categories: model.categories,
    descriptor: model.descriptor,
    isEnabled: model.isEnabled,
    labelText: model.labelText,
    value: model.value,
  );
}