removeIndex method

bool removeIndex(
  1. int index
)

Implementation

bool removeIndex(int index) {
  if (index < 0 || index >= _policies.length) return false;

  final policy = _policies[index];

  policy.reset();
  _policies.removeAt(index);
  return true;
}