isWindows10 property

Future<bool> get isWindows10

Indicates whether the operating system of the device is Windows 10.

Implementation

static Future<bool> get isWindows10 async {
  if (PlatformUtils.isWindows) {
    final info = await DeviceInfoPlugin().windowsInfo;
    return info.buildNumber >= 10240 && info.buildNumber < 22000;
  }

  return false;
}