getTextDecoration function

TextDecoration getTextDecoration(
  1. bool? underline,
  2. bool? delete
)

获取文本的装饰样式

Implementation

TextDecoration getTextDecoration(bool? underline, bool? delete) {
  if (underline != null && underline) {
    return TextDecoration.underline;
  }
  if (delete != null && delete) {
    return TextDecoration.lineThrough;
  }
  return TextDecoration.none;
}