getScreenWidth static method
Retrieves the screen width.
Returns a double representing the screen width.
Example:
double screenWidth = EaseDevice.getScreenWidth();
Implementation
static double getScreenWidth() {
return MediaQuery.of(Utils.globalKey.currentContext!).size.width;
}