isPhone property

bool get isPhone

Returns true if the width is less than or equal to 480 pixels.

Implementation

bool get isPhone => width > 180 && width <= 480;