firebase_dart_plus 0.1.0+9 firebase_dart_plus: ^0.1.0+9 copied to clipboard
Some additional features for the `firebase_dart` package.
Some additional features for the firebase_dart
package.
Features #
Write batches for realtime database #
A WriteBatch is a series of write operations to be performed as one unit.
Operations done on a WriteBatch do not take effect until you commit().
Example code:
var db = FirebaseDatabase(app: app, databaseURL: 'mem://some.name/');
var batch = db.batch();
var ref = batch.reference();
await ref.child('some/path').set('value1');
await ref.child('some/other/path').set('value2');
await batch.commit();