Future<bool> get isIOS13 async { if (Platform.isIOS) { var iosInfo = await DeviceInfoPlugin().iosInfo; if (iosInfo.systemVersion.startsWith('13')) { return true; } } return false; }