getActiveBreakpoints method
Get enabled breakpoints based on orientation and platform.
Implementation
List<Breakpoint> getActiveBreakpoints() {
// If the device is landscape enabled and the current orientation is landscape, use landscape breakpoints.
if (isLandscape) {
return widget.breakpointsLandscape ?? widget.breakpoints;
}
return widget.breakpoints;
}