copyWith method Null safety

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

Implementation

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