getPlatformVersion method

Future<String?> getPlatformVersion()

Returns a String containing the version of the platform.

Implementation

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