textDecorationLine method
void
textDecorationLine(
- 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();
}