smallerThan method
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;
}
Returns true if the screen is smaller than the given device type.
bool smallerThan(DeviceType type) {
final currentIndex = deviceType.index;
final targetIndex = type.index;
return currentIndex < targetIndex;
}