Initial commit with gitignore

This commit is contained in:
2026-01-13 14:11:59 +09:00
parent d01c0b781a
commit b302e25132
143 changed files with 7030 additions and 0 deletions

16
lib/models/player.dart Normal file
View File

@@ -0,0 +1,16 @@
class Player {
final String name;
final Set<String> positions;
Player({required this.name, required this.positions});
Map<String, dynamic> toMap() => {
'name': name,
'positions': positions.toList(),
};
factory Player.fromMap(Map<String, dynamic> map) => Player(
name: (map['name'] ?? '').toString(),
positions: Set<String>.from(map['positions'] ?? const []),
);
}