years property

double years
final

The duration part in years, if was given, otherwise defaults to 0.

Implementation

final double years;