firestoreRotinaRemote function

FirestoreRotinaRemote? firestoreRotinaRemote({
  1. required AppClock clock,
})

O Firestore deste aparelho para a rotina, a partitura e os comentários; null onde ele não está ligado (ver firestoreDoAparelho). clock é o relógio do app.

Implementation

FirestoreRotinaRemote? firestoreRotinaRemote({required AppClock clock}) {
  final db = firestoreDoAparelho();
  return db == null ? null : FirestoreRotinaRemote(db, clock: clock);
}