get static method
Returns the system information for the current device.
Implementation
static Future<SystemInfo> get() async {
final osInfo = await _getOsInfo();
final packageInfo = await PackageInfo.fromPlatform();
final osVersion = osInfo.version.length > 100
? osInfo.version.substring(0, 100)
: osInfo.version;
return SystemInfo._(
osName: osInfo.name,
osVersion: osVersion,
locale: Platform.localeName,
buildNumber: packageInfo.buildNumber,
appVersion: packageInfo.version,
);
}