updateCapacity method

void updateCapacity({
  1. int? onlineMax,
  2. int? addMax,
})

Update capacity.

Implementation

void updateCapacity({int? onlineMax, int? addMax}) {
  final current = selected;
  if (current == null) return;
  _update(current.copyWith(onlineMax: onlineMax, addMax: addMax));
}