BorderButton constructor

BorderButton({
  1. Key? key,
  2. bool autofocus = false,
  3. Clip? clipBehavior,
  4. FocusNode? focusNode,
  5. ValueChanged<bool>? onFocusChange,
  6. ValueChanged<bool>? onHover,
  7. VoidCallback? onLongPress,
  8. MaterialStatesController? statesController,
  9. ButtonStyle? styles,
  10. required VoidCallback? onPressed,
  11. required Widget? child,
})

Implementation

BorderButton({
  super.key,
  super.autofocus,
  super.clipBehavior,
  super.focusNode,
  super.onFocusChange,
  super.onHover,
  super.onLongPress,
  super.statesController,
  ButtonStyle? styles,
  required super.onPressed,
  required super.child,
}) : super(
        style: styles?.copyWith(
          shape: MaterialStateProperty.all(
            const StadiumBorder(),
          ),
        ),
      );