getPlatformVersion method

Future<String> getPlatformVersion()

Returns a String containing the version of the platform.

Implementation

Future<String> getPlatformVersion() async {
  // Используем extension types для типобезопасного доступа к JS API
  final userAgent = window.navigator.userAgent;
  return userAgent;
}