Initial commit with gitignore
This commit is contained in:
11
lib/state/player_pool.dart
Normal file
11
lib/state/player_pool.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import '../models/player.dart';
|
||||
|
||||
class PlayerPool {
|
||||
final List<Player> players;
|
||||
|
||||
PlayerPool({List<Player>? players}) : players = players ?? [];
|
||||
|
||||
void add(Player p) => players.add(p);
|
||||
void removeAt(int index) => players.removeAt(index);
|
||||
void clear() => players.clear();
|
||||
}
|
||||
Reference in New Issue
Block a user