textDecorationStyle method

  1. @ControllerProps(NodeProps.kTextDecorationStyle)
void textDecorationStyle(
  1. String textDecorationStyleString
)

Implementation

@ControllerProps(NodeProps.kTextDecorationStyle)
void textDecorationStyle(String textDecorationStyleString) {
  final propertyMap = {
    'solid': TextDecorationStyle.solid,
    'dashed': TextDecorationStyle.dashed,
    'dotted': TextDecorationStyle.dotted,
    'double': TextDecorationStyle.double,
    'wavy': TextDecorationStyle.wavy,
  };

  _textDecorationStyle = propertyMap[textDecorationStyleString] ?? TextDecorationStyle.solid;
  markDirty();
}