getDeviceInfo static method

Future<Map<String, String>> getDeviceInfo()

Implementation

static Future<Map<String, String>> getDeviceInfo() async {
  var info = (await packageInfo);
  Map<String, String> map = {
    'system': Platform.isAndroid ? 'android' : 'ios',
    'system_ver': Platform.operatingSystemVersion,
    'locale': Platform.localeName,
    'engine_ver': info.version,
  };
  return map;
}