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