copyWith method
TButton
copyWith({
- TButtonType? type,
- MaterialColor? color,
- TButtonSize? size,
- bool? block,
- bool? loading,
- String? loadingText,
- IconData? icon,
- String? text,
- String? tooltip,
- dynamic onPressed()?,
- bool? active,
- double? width,
- double? height,
- Widget? child,
- OutlinedBorder? shape,
Implementation
TButton copyWith({
TButtonType? type,
MaterialColor? color,
TButtonSize? size,
bool? block,
bool? loading,
String? loadingText,
IconData? icon,
String? text,
String? tooltip,
Function(TButtonPressOptions)? onPressed,
bool? active,
double? width,
double? height,
Widget? child,
OutlinedBorder? shape,
}) {
return TButton(
type: type ?? this.type,
color: color ?? this.color,
size: size ?? this.size,
block: block ?? this.block,
loading: loading ?? this.loading,
loadingText: loadingText ?? this.loadingText,
icon: icon ?? this.icon,
text: text ?? this.text,
tooltip: tooltip ?? this.tooltip,
onPressed: onPressed ?? this.onPressed,
active: active ?? this.active,
width: width ?? this.width,
height: height ?? this.height,
shape: shape ?? this.shape,
child: child ?? this.child,
);
}