getScreenSize method Null safety

Size getScreenSize(
  1. BuildContext context
)

Returns the Size of the screen.

Implementation

static Size getScreenSize(BuildContext context) {
  return MediaQuery.of(context).size;
}