overLine method

TextField overLine({
  1. bool active = true,
  2. Color? color,
})

上划线

Implementation

TextField overLine({bool active = true, Color? color}) {
  var newStyle = TextStyle(
      decoration: active == true ? TextDecoration.overline : TextDecoration.none,
      decorationColor: color);
  return copyWith(style: style?.merge(newStyle) ?? newStyle);
}