getContainerWidth static method

double getContainerWidth(
  1. String key
)

returns a container width based on the passed breakpoint "": -1, because must be generated sm: 540, md: 720, lg: 960, xl: 1140, xxl: 1320,

Implementation

static double getContainerWidth(String key) {
  if (!breakPointLabels.contains(key)) {
    throw FormatException(
        "BSBreakpoint:\nPassed key '$key' is invalid, must be:\n${breakPointLabels.toString()}");
  }
  return containerWidths[key]!;
}