addEgg method
Implementation
void addEgg(Map<String, dynamic> data) {
final egg = Egg(data: data);
final Directory collectionPath = Directory('$path/$name');
if (!collectionPath.existsSync()) {
collectionPath.createSync(recursive: true);
}
egg.save(collectionPath.path);
}