From static method

Future From({
  1. required String collection,
  2. int limit = 0,
  3. Map sort = const {},
  4. String action = Action.AllData,
  5. Map filter = const {},
})

To Get Data From a Collection

Implementation

static Future From(
    {required String collection,
    int limit = 0,
    Map<dynamic, dynamic> sort = const {},
    String action = Action.AllData,
    Map<dynamic, dynamic> filter = const {}}) async {
  try {
    var Data = await GetbaseProvider.to.FromCollection(collection,
        limit: limit, action: action, queryData: filter, sort: sort);
    return Data;
  } catch (e) {
    throw e.toString();
  }
}