textDecorationLine method

  1. @ControllerProps(NodeProps.kTextDecorationLine)
void textDecorationLine(
  1. String textDecorationLineString
)

Implementation

@ControllerProps(NodeProps.kTextDecorationLine)
void textDecorationLine(String textDecorationLineString) {
  _isUnderlineTextDecorationSet = false;
  _isLineThroughTextDecorationSet = false;
  for (var textDecorationLineSubString in textDecorationLineString.split(" ")) {
    if ("underline" == textDecorationLineSubString) {
      _isUnderlineTextDecorationSet = true;
    } else if ("line-through" == textDecorationLineSubString) {
      _isLineThroughTextDecorationSet = true;
    }
  }
  markDirty();
}