copyWith method
ThemeExtension<TxLoadingThemeData>
copyWith({
- Widget? child,
- TextStyle? textStyle,
- IconThemeData? iconTheme,
- Color? baseColor,
- Color? highlightColor,
- Duration? period,
- ShimmerDirection? direction,
- Gradient? gradient,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<TxLoadingThemeData> copyWith({
Widget? child,
TextStyle? textStyle,
IconThemeData? iconTheme,
Color? baseColor,
Color? highlightColor,
Duration? period,
ShimmerDirection? direction,
Gradient? gradient,
}) {
return TxLoadingThemeData(
child: child,
textStyle: textStyle,
iconTheme: iconTheme,
period: period,
direction: direction,
gradient: gradient,
);
}