TextButton constructor

const TextButton(
  1. {Key key,
  2. @required VoidCallback onPressed,
  3. VoidCallback onLongPress,
  4. ButtonStyle style,
  5. FocusNode focusNode,
  6. bool autofocus: false,
  7. Clip clipBehavior: Clip.none,
  8. @required Widget child}

Create a TextButton.

The autofocus and clipBehavior arguments must not be null.


const TextButton({
  Key key,
  @required VoidCallback onPressed,
  VoidCallback onLongPress,
  ButtonStyle style,
  FocusNode focusNode,
  bool autofocus = false,
  Clip clipBehavior = Clip.none,
  @required Widget child,
}) : super(
  key: key,
  onPressed: onPressed,
  onLongPress: onLongPress,
  style: style,
  focusNode: focusNode,
  autofocus: autofocus,
  clipBehavior: clipBehavior,
  child: child,