setSort method

Future<void> setSort(
  1. String uniqueName,
  2. String sortType
)

Sets the sort type to the specified hierarchy. Learn more about sorting in this guide: Custom sorting.

Implementation

Future<void> setSort(String uniqueName, String sortType) async {
  WebViewController apiController = await controller.future;
  await apiController
      .runJavascript("flexmonster.setSort('$uniqueName','$sortType')");
}