copyWith method

  1. @override
ThemeExtension<TxLoadingThemeData> copyWith({
  1. Widget? child,
  2. TextStyle? textStyle,
  3. IconThemeData? iconTheme,
  4. Color? baseColor,
  5. Color? highlightColor,
  6. Duration? period,
  7. ShimmerDirection? direction,
  8. 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,
  );
}