isWide static method
bool
isWide(
- BoxConstraints constraints, {
- double wideThreshold = NavigationConstants.wideScreenThreshold,
- double veryWideThreshold = NavigationConstants.veryWideScreenThreshold,
Whether constraints width falls in the wide range, i.e. between
wideThreshold (inclusive) and veryWideThreshold (exclusive).
Implementation
static bool isWide(
BoxConstraints constraints, {
double wideThreshold = NavigationConstants.wideScreenThreshold,
double veryWideThreshold = NavigationConstants.veryWideScreenThreshold,
}) {
return constraints.maxWidth >= wideThreshold &&
constraints.maxWidth < veryWideThreshold;
}