getBreakpoint method
Implementation
Breakpoint getBreakpoint(BuildContext context) {
final width = MediaQuery.sizeOf(context).width;
final config = _config;
if (width < config.small) {
return Breakpoint.small;
} else if (width < config.medium) {
return Breakpoint.medium;
} else if (width < config.large) {
return Breakpoint.large;
} else {
return Breakpoint.xlarge;
}
}