setFilter method

Future<void> setFilter(
  1. String hierarchyName,
  2. List<String> items, [
  3. bool? negation
])

Sets the filter for the specified hierarchy.

Implementation

Future<void> setFilter(String hierarchyName, List<String> items,
    [bool? negation]) async {
  WebViewController apiController = await controller.future;
  await apiController.runJavascript(
      "webdatarocks.setFilter('$hierarchyName',${jsonEncode(items)},${negation == null ? "" : "$negation"})");
}