equalsTo method

  1. @override
bool equalsTo(
  1. GenericItem<T>? other
)

Implementation

@override
bool equalsTo(GenericItem<T>? other) {
  final currentForm = this.currentForm;

  return const DeepCollectionEquality().equals(
    currentForm is FormControlCollection<dynamic>
        ? currentForm.rawValue
        : currentForm.value,
    GenericItemForm.formElements(other).rawValue,
  );
}