resolve static method

KiteLayoutSize resolve(
  1. double width
)

Implementation

static KiteLayoutSize resolve(double width) {
  if (!width.isFinite || width < 0) {
    throw ArgumentError.value(
      width,
      'width',
      'Responsive width must be a finite, non-negative number.',
    );
  }

  if (width < medium) return KiteLayoutSize.compact;
  if (width < expanded) return KiteLayoutSize.medium;
  return KiteLayoutSize.expanded;
}