Remove method

bool Remove(
  1. PropertyDefinitionBase propertyDefinition
)
Removes the specified property definition from the collection. The property definition.

Implementation

bool Remove(PropertyDefinitionBase propertyDefinition) {
  final forRemove = _propDefSortOrderPairList.where(
    (pair) => pair.key == propertyDefinition,
  );
  forRemove.forEach(_propDefSortOrderPairList.remove);
  int count = forRemove.length;
  return count > 0;
}