isMobile property
bool
get
isMobile
Whether the current layout width class is DeviceSize.mobile.
Reports the layout width class (a narrow window) derived from the
ResponsiveScope — not the OS / device platform. For "is this a phone
OS?" use DevicePlatform.isMobile instead; both ship from the same barrel
and the identical name is the only thing they share.
Implementation
bool get isMobile => deviceSize == DeviceSize.mobile;