copyWith method

TD copyWith({
  1. Widget? child,
  2. Color? color,
  3. EdgeInsets? padding,
  4. TRStyle? style,
})

Implementation

TD copyWith({
  Widget? child,
  Color? color,
  EdgeInsets? padding,
  TRStyle? style,
}) =>
    TD(
      child ?? this.child,
      color: color ?? this.color,
      padding: padding ?? this.padding,
      style: style ?? this.style,
    );