copyWith method

TButton copyWith({
  1. TButtonTheme? theme,
  2. TButtonType? type,
  3. Color? color,
  4. TButtonSize? size,
  5. bool? loading,
  6. String? loadingText,
  7. IconData? icon,
  8. String? text,
  9. String? tooltip,
  10. VoidCallback? onTap,
  11. dynamic onPressed(
    1. TButtonPressOptions
    )?,
  12. bool? active,
  13. 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,
  );
}