add method

dynamic add(
  1. T object, {
  2. TWPriority priority = TWPriority.middle,
  3. bool repeatability = true,
})

Implementation

add(
  T object, {
  TWPriority priority = TWPriority.middle,
  bool repeatability = true,
}) {
  if (!repeatability) {
    remove(object);
  }
  _containers[priority]!.add(object);
}