remove method

MultiProgressModel remove(
  1. String key
)

Removes the progress bar with the given key.

Implementation

MultiProgressModel remove(String key) {
  final newBars = Map<String, ProgressModel>.from(bars);
  newBars.remove(key);
  return MultiProgressModel(bars: newBars, width: width);
}