getReferenceSize static method

dynamic getReferenceSize(
  1. double width
)

Gets the latest screen limit which contains width size

Implementation

static getReferenceSize(double width) {
  ScreenSize located = limits.keys.first;
  for (ScreenSize tag in limits.keys) {
    if (limits[tag]! > width) return located;
    located = tag;
  }
  return located;
}