getIosDeviceInformation method
getIosDeviceInformation is used to retrieve information like
model
, version
, and much more from iOS device.
Implementation
Future<IosDeviceInfo?> getIosDeviceInformation() async {
try {
if (Platform.isIOS) {
final iosDeviceInfo = await _deviceInfoPlugin.iosInfo;
return iosDeviceInfo;
}
return null;
} catch (error) {
rethrow;
}
}