copyWith method

  1. @override
ThemeExtension<StatusIndicatorThemeData> copyWith({
  1. TextStyle? labelStyle,
  2. Color? loadingHighlightColor,
  3. Color? loadingBaseColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<StatusIndicatorThemeData> copyWith({
  TextStyle? labelStyle,
  Color? loadingHighlightColor,
  Color? loadingBaseColor,
}) {
  return StatusIndicatorThemeData(
    labelStyle: labelStyle ?? this.labelStyle,
    loadingHighlightColor:
        loadingHighlightColor ?? this.loadingHighlightColor,
    loadingBaseColor: loadingBaseColor ?? this.loadingBaseColor,
  );
}