updateEgg method

void updateEgg(
  1. String eggId,
  2. Map<String, dynamic> newData
)

Implementation

void updateEgg(String eggId, Map<String, dynamic> newData) {
  final egg = getEgg(eggId);
  if (egg != null) {
    egg.update('$path/$name', newData);
  }
}