years property

int years
final

Moves the thumbs based on years.

For example, if min is DateTime(2000, 01, 01) and max is DateTime(2006, 01, 01) and SliderDuration(years: 2) then the thumb will get moved at DateTime(2000, 01, 01), DateTime(2002, 07, 01), DateTime(2004, 01, 01), and DateTime(2006, 07, 01).

Implementation

final int years;