getTextDecoration function
获取文本的装饰样式
Implementation
TextDecoration getTextDecoration(bool? underline, bool? delete) {
if (underline != null && underline) {
return TextDecoration.underline;
}
if (delete != null && delete) {
return TextDecoration.lineThrough;
}
return TextDecoration.none;
}