when method
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);
}