setFlatSort method

Future<void> setFlatSort(
  1. Map<String, String> flatSort
)

Sorts columns in the flat view. Note that the setFlatSort method is available only for reports based on "csv", "json", and "api" data source types.

Implementation

Future<void> setFlatSort(Map<String, String> flatSort) async {
  WebViewController apiController = await controller.future;
  await apiController
      .runJavascript("flexmonster.setFlatSort(${jsonEncode(flatSort)})");
}