copyWith method

  1. @override
ThemeExtension<OrkittCircularProgressIndicatorThemeData> copyWith({
  1. Color? color,
  2. Color? trackColor,
  3. double? strokeWidth,
  4. double? trackStrokeWidth,
})
override

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

Implementation

@override
theme.ThemeExtension<OrkittCircularProgressIndicatorThemeData> copyWith({
  Color? color,
  Color? trackColor,
  double? strokeWidth,
  double? trackStrokeWidth,
}) {
  return OrkittCircularProgressIndicatorThemeData(
    color ?? this.color,
    trackColor ?? this.trackColor,
    strokeWidth ?? this.strokeWidth,
    trackStrokeWidth ?? this.trackStrokeWidth,
  );
}