underline method

Widget underline({
  1. double thickness = 1,
  2. double gapWithText = 2,
  3. Color color = Colors.black,
  4. bool isCenter = false,
})

For make Single Underline

Implementation

Widget underline({
  double thickness = 1,
  double gapWithText = 2,
  Color color = Colors.black,
  bool isCenter = false,
}) =>
    Underline(
      text: this,
      isCenter: isCenter,
      gap: gapWithText,
      height: thickness,
      width: 0.1,
      color: color,
    );