static double resolveFlexGrow(String grow) { double? flexGrow = CSSLength.toDouble(grow); return flexGrow != null && flexGrow >= 0 ? flexGrow : 0.0; }