set static method

dynamic set({
  1. required String collectionName,
  2. required Map<String, dynamic> value,
})

Implementation

static set({
  required String collectionName,
  required Map<String, dynamic> value,
}) async {
  var ref = getRef(
    collectionName: collectionName,
  );

  try {
    if (Platform.isWindows) {
      return await ref.set(value);
    } else {
      return await ref.set(value);
    }
  } on Exception catch (_) {
    print(_);
  }
}