Package? find({required String name}) { final match = packages.where((e) => e.name == name); return match.isNotEmpty ? match.first : null; }