getScreenHeight static method

double getScreenHeight()

Retrieves the screen height.

Returns a double representing the screen height.

Example:

double screenHeight = EaseDevice.getScreenHeight();

Implementation

static double getScreenHeight() {
  return MediaQuery.of(Utils.globalKey.currentContext!).size.height;
}