xTextButton method

Widget xTextButton (
  1. {bool autofocus = false,
  2. Clip clipBehavior = Clip.none,
  3. Color color,
  4. FocusNode focusNode,
  5. Key key,
  6. MaterialTapTargetSize materialTapTargetSize,
  7. void onLongPress(
      ),
    1. EdgeInsetsGeometry padding,
    2. ShapeBorder shape,
    3. BorderSide side,
    4. ButtonTextTheme textTheme,
    5. Widget child,
    6. AlignmentGeometry alignment,
    7. double elevation,
    8. Duration animationDuration,
    9. MouseCursor disabledMouseCursor,
    10. Color primary,
    11. Color shadowColor,
    12. TextStyle textStyle,
    13. VisualDensity visualDensity,
    14. bool enableFeedback,
    15. MouseCursor enabledMouseCursor,
    16. Size minimumSize,
    17. Color onSurface,
    18. void onPressed(
        )}
      )

      Implementation

      Widget xTextButton(
          {bool autofocus = false,
          Clip clipBehavior = Clip.none,
          Color color,
          FocusNode focusNode,
          Key key,
          MaterialTapTargetSize materialTapTargetSize,
          void Function() onLongPress,
          EdgeInsetsGeometry padding,
          ShapeBorder shape,
          BorderSide side,
          ButtonTextTheme textTheme,
          Widget child,
          AlignmentGeometry alignment,
          double elevation,
          Duration animationDuration,
          MouseCursor disabledMouseCursor,
          Color primary,
          Color shadowColor,
          TextStyle textStyle,
          VisualDensity visualDensity,
          bool enableFeedback,
          MouseCursor enabledMouseCursor,
          Size minimumSize,
          Color onSurface,
          void Function() onPressed}) {
        return TextButton(
          onPressed: onPressed,
          autofocus: autofocus,
          clipBehavior: clipBehavior,
          style: TextButton.styleFrom(
            padding: padding,
            shape: shape,
            alignment: alignment,
            animationDuration: animationDuration,
            disabledMouseCursor: disabledMouseCursor,
            primary: primary,
            shadowColor: shadowColor,
            side: side,
            textStyle: textStyle,
            visualDensity: visualDensity,
            enableFeedback: enableFeedback,
            enabledMouseCursor: enabledMouseCursor,
            minimumSize: minimumSize,
            onSurface: onSurface,
            tapTargetSize: materialTapTargetSize,
            elevation: elevation,
            backgroundColor: color,
          ),
          key: key,
          focusNode: focusNode,
          onLongPress: onLongPress,
          child: this,
        );
      }