getList method

Future<List<StorageOperator>> getList ({bool distinct, List<String> columns, String where, List whereArgs, String groupBy, String having, String orderBy, int limit, int offset })

Implementation

Future<List<StorageOperator>> getList(
    {bool distinct,
    List<String> columns,
    String where,
    List whereArgs,
    String groupBy,
    String having,
    String orderBy,
    int limit,
    int offset}) async {
  List<Map> maps = await this.getRawList(
    distinct: distinct,
    columns: columns,
    where: where,
    whereArgs: whereArgs,
    groupBy: groupBy,
    having: having,
    orderBy: orderBy,
    limit: limit,
    offset: offset,
  );
  if (maps != null && maps.length > 0) {
    List<StorageOperator> soList = [];
    maps.forEach((map) => soList.add(getOperatorClassFromMap(map)));
    return soList;
  }
  return null;
}