coreValue property
Implementation
@visibleForTesting
int get coreValue {
switch (this) {
case unknown:
return -1;
case centuries:
return 0;
case days:
return 1;
case decades:
return 2;
case hours:
return 3;
case milliseconds:
return 4;
case minutes:
return 5;
case months:
return 6;
case seconds:
return 7;
case weeks:
return 8;
case years:
return 9;
}
}