isDisplaySmallDesktop function

bool isDisplaySmallDesktop(
  1. BuildContext context
)

Returns boolean value whether the window is considered medium size.

Used to build adaptive and responsive layouts.

Implementation

bool isDisplaySmallDesktop(BuildContext context) {
  return getWindowType(context) == AdaptiveWindowType.medium;
}