getOSVersion function

Future<String> getOSVersion()

Implementation

Future<String> getOSVersion() async {
  var plugin = OsInfoPlugin();
  return await plugin.getPlatformVersion() ?? 'unknown';
}