discontinuedPackage widgets_functions has been discontinued and replaced by flutter_widget_function.

getPlatformVersion method

Future<String> getPlatformVersion()

Returns a String containing the version of the platform.

Implementation

Future<String> getPlatformVersion() {
  final version = html.window.navigator.userAgent;
  return Future.value(version);
}