when method

  1. @override
bool when(
  1. BuildContext context
)
override

Determines whether the given BuildContext matches this variant's breakpoint.

Returns true if the context's screen size matches the breakpoint, and false otherwise.

Implementation

@override
bool when(BuildContext context) {
  return breakpoint.matches(context.screenSize);
}