setPropFloat method
Implementation
void setPropFloat(String name, double value) {
switch (name) {
case NodeProps.kWidth:
styleWidth = value;
break;
case NodeProps.kMinWidth:
styleMinWidth = value;
break;
case NodeProps.kMaxWidth:
styleMinWidth = value;
break;
case NodeProps.kHeight:
styleHeight = value;
break;
case NodeProps.kMinHeight:
styleMinHeight = value;
break;
case NodeProps.kMaxHeight:
styleMaxHeight = value;
break;
case NodeProps.kFlex:
flex = value;
break;
case NodeProps.kFlexGrow:
flexGrow = value;
break;
case NodeProps.kFlexShrink:
flexShrink = value;
break;
case NodeProps.kFlexBasis:
flexBasis = value;
break;
case NodeProps.kMargin:
setMargin(FlexStyleEdge.all, value);
break;
case NodeProps.kMarginVertical:
setMargin(FlexStyleEdge.vertical, value);
break;
case NodeProps.kMarginHorizontal:
setMargin(FlexStyleEdge.horizontal, value);
break;
case NodeProps.kMarginLeft:
setMargin(FlexStyleEdge.left, value);
break;
case NodeProps.kMarginRight:
setMargin(FlexStyleEdge.right, value);
break;
case NodeProps.kMarginTop:
setMargin(FlexStyleEdge.top, value);
break;
case NodeProps.kMarginBottom:
setMargin(FlexStyleEdge.bottom, value);
break;
case NodeProps.kPadding:
setPadding(FlexStyleEdge.all, value);
break;
case NodeProps.kPaddingVertical:
setPadding(FlexStyleEdge.vertical, value);
break;
case NodeProps.kPaddingHorizontal:
setPadding(FlexStyleEdge.horizontal, value);
break;
case NodeProps.kPaddingLeft:
setPadding(FlexStyleEdge.left, value);
break;
case NodeProps.kPaddingRight:
setPadding(FlexStyleEdge.right, value);
break;
case NodeProps.kPaddingTop:
setPadding(FlexStyleEdge.top, value);
break;
case NodeProps.kPaddingBottom:
setPadding(FlexStyleEdge.bottom, value);
break;
case NodeProps.kBorderWidth:
setBorder(FlexStyleEdge.all, value);
break;
case NodeProps.kBorderLeftWidth:
setBorder(FlexStyleEdge.left, value);
break;
case NodeProps.kBorderRightWidth:
setBorder(FlexStyleEdge.right, value);
break;
case NodeProps.kBorderTopWidth:
setBorder(FlexStyleEdge.top, value);
break;
case NodeProps.kBorderBottomWidth:
setBorder(FlexStyleEdge.bottom, value);
break;
case NodeProps.kLeft:
setPosition(FlexStyleEdge.left, value);
break;
case NodeProps.kRight:
setPosition(FlexStyleEdge.right, value);
break;
case NodeProps.kTop:
setPosition(FlexStyleEdge.top, value);
break;
case NodeProps.kBottom:
setPosition(FlexStyleEdge.bottom, value);
break;
default:
break;
}
}