remove method

void remove(
  1. T object
)

closes the cubit bound to this object and removes it from the track list

Implementation

void remove(T object) {
  _cubits.remove(buildId(object))?.close();
}