copyWith method

IndicatorThemeData copyWith({
  1. Color? color,
  2. double? size,
  3. double? position,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

IndicatorThemeData copyWith({
  Color? color,
  double? size,
  double? position,
}) {
  return IndicatorThemeData(
    color: color ?? this.color,
    size: size ?? this.size,
    position: position ?? this.position,
  );
}