axisDp static method

double axisDp(
  1. DimenMetrics m,
  2. DpQualifier effectiveQualifier
)

Axis dimension in dp for the effective qualifier.

Implementation

static double axisDp(DimenMetrics m, DpQualifier effectiveQualifier) =>
    switch (effectiveQualifier) {
      DpQualifier.smallWidth => m.smallestWidthDp,
      DpQualifier.width => m.screenWidthDp.toDouble(),
      DpQualifier.height => m.screenHeightDp.toDouble(),
    };