getPlatformVersion method

Future<String> getPlatformVersion()

Returns a String containing the version of the platform.

Implementation

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