yearShape property
final
Overrides the default shape used to paint the shape decoration of the year labels in the list of the year picker.
If the selected year is the current year, the provided shape with the value of todayBackgroundColor is used to paint the shape decoration of the year label and the value of todayBorder and todayForegroundColor is used to paint the border.
If the selected year is not the current year, the provided shape with the value of yearBackgroundColor is used to paint the shape decoration of the year label.
Implementation
final WidgetStateProperty<OutlinedBorder?>? yearShape;