TextButton constructor Null safety

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

Implementation

const factory TextButton(
    {final Key? key,
    required final Callback? onPressed,
    final Callback? onLongPress,
    final bool autofocus,
    final Clip clipBehavior,
    required final Widget child}) = _$TextButton;