getScreenSize static method
Retrieves the screen dimensions.
Returns a Size object representing the screen dimensions.
Example:
Size screenSize = EaseDevice.getScreenSize();
Implementation
static Size getScreenSize() {
return MediaQuery.of(Utils.globalKey.currentContext!).size;
}