setSort method
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')");
}