setSort method

Future<void> setSort(
  1. String hierarchyName,
  2. String sortName, [
  3. List<String>? customSorting
])

Sets the sort type to the specified hierarchy.

Implementation

Future<void> setSort(String hierarchyName, String sortName,
    [List<String>? customSorting]) async {
  WebViewController apiController = await controller.future;
  await apiController.runJavascript(
      "webdatarocks.setSort('$hierarchyName','$sortName',${customSorting == null ? "" : "$customSorting"})");
}