uploadOnCollectionLevel method

Future<void> uploadOnCollectionLevel(
  1. String collectionPath,
  2. Map<String, dynamic> payload
)

upload will be different types... upload to a collection level

Implementation

Future <void> uploadOnCollectionLevel(String collectionPath,
    Map<String, dynamic> payload) async {
  Constants.fireStoreInstance.collection(collectionPath).doc().set(payload)
      .then((value) => null).onError((error, stackTrace) => null)
      .timeout(const Duration(seconds: 30));
}