equals method

bool equals(
  1. DeviceType type
)

Returns true if the screen is the same as the given device type.

Implementation

bool equals(DeviceType type) => deviceType == type;