toButtonStyle method
toButtonStyle is the function that will be used to convert ButtonStyle for button styling
Implementation
ButtonStyle toButtonStyle() {
return TextButton.styleFrom(
backgroundColor: backgroundColor,
foregroundColor: foregroundColor,
disabledBackgroundColor: disabledBackgroundColor,
disabledForegroundColor: disabledForegroundColor,
surfaceTintColor: surfaceTintColor,
shadowColor: shadowColor,
elevation: elevation,
textStyle: textStyle,
padding: padding,
minimumSize: minimumSize,
fixedSize: fixedSize,
maximumSize: maximumSize,
side: side,
shape: shape,
visualDensity: visualDensity,
tapTargetSize: tapTargetSize ?? MaterialTapTargetSize.shrinkWrap,
animationDuration: animationDuration,
enableFeedback: enableFeedback,
alignment: alignment,
splashFactory: splashFactory,
);
}