insert method

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

Implementation

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