getAndroidInformation method
Future method called getAndroidInformation has JAndroidInfo return type.
Implementation
Future<JAndroidInfo> getAndroidInformation() async {
JAndroidInfo androidInfo = JAndroidInfo();
try {
final value = await _methodChannel.invokeMethod<String>(_ANDROID_INFO);
if (value != null) {
final val = json.decode(value);
androidInfo = JAndroidInfo.fromMap(val);
}
return androidInfo;
} catch (e) {
return androidInfo;
}
}