screenWidth property
double?
screenWidth
screenWidth
returns the current device screen width.
Note: You can use it instead of MediaQuery.of(context).size.width
Implementation
double? get screenWidth => _screenWidth;