Widget.textButton constructor Null safety

const Widget.textButton(
  1. {Key? key,
  2. required Callback? onPressed,
  3. Callback? onLongPress,
  4. @Default(false) bool autofocus,
  5. @Default(Clip.none) Clip clipBehavior,
  6. required Widget child}
)

Implementation

const factory Widget.textButton({
  Key? key,
  required Callback? onPressed,
  Callback? onLongPress,
  @Default(false) bool autofocus,
  @Default(Clip.none) Clip clipBehavior,
  required Widget child,
}) = TextButton;