automaticIndicatorColorAdjustment property
Default TabBar parameter
Whether this tab bar should automatically adjust the indicatorColor. The default value of this property is true. If automaticIndicatorColorAdjustment is true, then the indicatorColor will be automatically adjusted to Colors.white when the indicatorColor is same as Material.color of the Material parent widget.
Implementation
final bool automaticIndicatorColorAdjustment;