isIpad function

Future<bool> isIpad()

Implementation

Future<bool> isIpad() async {
  DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
  IosDeviceInfo info = await deviceInfo.iosInfo;
  if (info.name!.toLowerCase().contains("ipad")) {
    return true;
  }
  return false;
}