digits property
The maximum number of digits after the decimal separator.
final link = Link(…)..digits = 3;
link.digits; // 3
This option only applies when the associated context is null, as when this link generator is used to produce path data.
Implementation
@override
get digits;
Implementation
set digits(num? digits) {
if (digits == null) {
_digits = null;
} else {
final d = digits.floorToDouble();
if (!(d >= 0)) {
throw ArgumentError.value(
digits, "digits", "Not greater than or equal to zero");
}
_digits = d;
}
}