copyWith method
TButton
copyWith({
- TButtonTheme? theme,
- TButtonType? type,
- Color? color,
- TButtonSize? size,
- bool? loading,
- String? loadingText,
- IconData? icon,
- String? text,
- String? tooltip,
- VoidCallback? onTap,
- dynamic onPressed()?,
- bool? active,
- Widget? child,
Implementation
TButton copyWith({
TButtonTheme? theme,
TButtonType? type,
Color? color,
TButtonSize? size,
bool? loading,
String? loadingText,
IconData? icon,
String? text,
String? tooltip,
VoidCallback? onTap,
Function(TButtonPressOptions)? onPressed,
bool? active,
Widget? child,
}) {
return TButton(
theme: theme ?? this.theme,
type: type ?? this.type,
color: color ?? this.color,
size: size ?? this.size,
loading: loading ?? this.loading,
loadingText: loadingText ?? this.loadingText,
icon: icon ?? this.icon,
text: text ?? this.text,
tooltip: tooltip ?? this.tooltip,
onTap: onTap ?? this.onTap,
onPressed: onPressed ?? this.onPressed,
active: active ?? this.active,
child: child ?? this.child,
);
}