resolveFlexShrink static method

double resolveFlexShrink(
  1. String shrink
)

Implementation

static double resolveFlexShrink(String shrink) {
  double? flexShrink = CSSLength.toDouble(shrink);
  return flexShrink != null && flexShrink >= 0 ? flexShrink : 1.0;
}