largerThan method

bool largerThan(
  1. DeviceType type
)

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

Implementation

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