isWide static method

bool isWide(
  1. BoxConstraints constraints, {
  2. double wideThreshold = NavigationConstants.wideScreenThreshold,
  3. 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;
}