isWatch property
bool
get
isWatch
Determines the device type based on screen width. Assumes width as the shortest side, consider using actual screen dimensions for better accuracy. Returns true if the width is less than or equal to 180 pixels.
Implementation
/// Returns true if the width is less than or equal to 180 pixels.
bool get isWatch => width <= 180;