smallerThan method

bool smallerThan(
  1. DeviceType type
)

Returns true if the screen is smaller than the given device type.

Implementation

bool smallerThan(DeviceType type) {
  final currentIndex = deviceType.index;
  final targetIndex = type.index;
  return currentIndex < targetIndex;
}