toOutlinedButton method

Widget toOutlinedButton({
  1. double? titleSize,
  2. Color titleColor = Colors.black,
  3. VoidCallback? onTap,
  4. Color? bgEnableColor,
  5. Color? bgDisableColor,
})

Implementation

Widget toOutlinedButton({
  double? titleSize,
  Color titleColor = Colors.black,
  VoidCallback? onTap,
  Color? bgEnableColor,
  Color? bgDisableColor,
}) =>
    toText(
      size: titleSize ?? 14,
      color: onTap != null ? titleColor : Colors.grey,
    ).toOutlinedButton(
      onTap: onTap,
      bgEnableColor: bgEnableColor,
      bgDisableColor: bgDisableColor,
      borderColor: titleColor,
    );