getFlatSort method

Future getFlatSort()

Returns an array of objects defining the sorting on the flat grid. Note that the getFlatSort method is available only for reports based on "csv", "json", and "api" data source types.

Implementation

Future<dynamic> getFlatSort() async {
  WebViewController apiController = await controller.future;
  String flatSortString = await apiController
      .runJavascriptReturningResult("flexmonster.getFlatSort()");
  dynamic flatSort = jsonDecode(flatSortString);
  return flatSort;
}