@override Future<void> update<T extends Document<T>>(Document<T> document) async { final batch = Batch()..update(document); await batch.commit(); }