fontWeight method

  1. @ControllerProps(NodeProps.kFontWeight)
void fontWeight(
  1. String weight
)

Implementation

@ControllerProps(NodeProps.kFontWeight)
void fontWeight(String weight) {
  var fontWeight = parseFontWeight(weight);

  if (fontWeight != _fontWeight) {
    _fontWeight = fontWeight;
    markDirty();
  }
}