AwaitableOutlinedButton<R> constructor

const AwaitableOutlinedButton<R>({
  1. Key? key,
  2. required OnPressed<R>? onPressed,
  3. WhenComplete<R>? whenComplete,
  4. OnError? onError,
  5. ButtonStyle? buttonStyle,
  6. Color? indicatorColor,
  7. Size? indicatorSize,
  8. double? indicatorStrokeWidth,
  9. Widget? indicator,
  10. Widget? executingChild,
  11. required Widget child,
})

Create an AwaitableOutlinedButton.

onPressed and child arguments must not be null.

If indicator is specified, indicatorColor and indicatorSize cannot be specified.

If both indicator and indicatorSize are null, the size of the Indicator is Size.square(24).

If both indicator and indicatorColor are null, color and circularTrackColor of ThemeData.progressIndicatorTheme are used.

Implementation

const AwaitableOutlinedButton({
  super.key,
  required super.onPressed,
  super.whenComplete,
  super.onError,
  super.buttonStyle,
  super.indicatorColor,
  super.indicatorSize,
  super.indicatorStrokeWidth,
  super.indicator,
  super.executingChild,
  required super.child,
}) : super(
        buttonType: ButtonType.outlined,
      );