width property

double get width

The horizontal extent of this size.

Implementation

double get width =>
    _context != null ? MediaQuery.of(_context!).size.width : _screenWidth;