underline method

Widget underline()

Implementation

Widget underline() {
  if (this is WrappedText) {
    return (this as WrappedText).copyWithStyle(
      (context, theme) => const TextStyle(
        decoration: TextDecoration.underline,
      ),
    );
  }
  return WrappedText(
      style: (context, theme) => const TextStyle(
            decoration: TextDecoration.underline,
          ),
      child: this);
}