width property

double get width

Returns the current screen width in logical pixels.

Implementation

double get width => MediaQuery.sizeOf(_context).width;