getAndroidDeviceInformation method
getAndroidDeviceInformation is used to retrieve the like
model
, manufacturer
, androidVersion
, securityPatch
and more
from the Android Device.
Implementation
Future<AndroidDeviceInfo?> getAndroidDeviceInformation() async {
try {
if (Platform.isAndroid) {
final androidDeviceInfo = await _deviceInfoPlugin.androidInfo;
return androidDeviceInfo;
}
return null;
} catch (error) {
rethrow;
}
}