AutoTextButton constructor

const AutoTextButton(
  1. String text, {
  2. Key? key,
  3. required Function onPressed,
  4. double? width,
  5. double? height,
  6. Color? color,
  7. Color? textColor,
  8. ValueNotifier<BoxShadow>? shadow,
  9. double margin = 0.0,
  10. double radius = 24,
  11. bool isDisabled = false,
})

Creates an AutoTextButton widget.

The text and onPressed parameters must not be null.

Implementation

const AutoTextButton(
  String text, {
  super.key,
  required super.onPressed,
  super.width,
  super.height,
  super.color,
  super.textColor,
  super.shadow,
  super.margin,
  super.radius,
  super.isDisabled = false,
})  : assert(text != ""),
      super(text: text);