getFormat method

Future getFormat(
  1. String measureName, [
  2. String? aggregation
])

Returns the default number format or the number format for the specified measure.

Implementation

Future<dynamic> getFormat(String measureName, [String? aggregation]) async {
  WebViewController apiController = await controller.future;
  String formatString = await apiController.runJavascriptReturningResult(
      "JSON.stringify(flexmonster.getFormat('$measureName'${aggregation == null ? "" : "'$aggregation'"}))");
  dynamic format = jsonDecode(formatString);
  return format;
}