indicator property Null safety
final
Defines the appearance of the selected tab indicator.
If indicator is specified or provided from TabBarTheme, the indicatorColor, and indicatorWeight properties are ignored.
The default, underline-style, selected tab indicator can be defined with UnderlineTabIndicator.
The indicator's size is based on the tab's bounds. If indicatorSize is TabBarIndicatorSize.tab the tab's bounds are as wide as the space occupied by the tab in the tab bar. If indicatorSize is TabBarIndicatorSize.label, then the tab's bounds are only as wide as the tab widget itself.
See also:
- splashBorderRadius, which defines the clipping radius of the splash and is generally used with BoxDecoration.borderRadius.
Implementation
final Decoration? indicator;