smallerOrEqualTo method

bool smallerOrEqualTo(
  1. String name
)

Is the screenWidth smaller than or equal to the name? Defaults to false if the name cannot be found.

Implementation

bool smallerOrEqualTo(String name) =>
    screenWidth <=
    (breakpoints.firstWhereOrNull((element) => element.name == name)?.end ??
        0);