isTablet method

bool isTablet()

True if current device is a tablet.

Implementation

bool isTablet() {
  final DeviceType deviceType = getDeviceType();
  return deviceType == DeviceType.tabletLandscape || deviceType == DeviceType.tabletPortrait;
}