asMilliseconds property
Duration
get
asMilliseconds
Easy way to make Durations from numbers.
Sample:
print(1.seconds + 200.asMilliseconds);
print(1.hours + 30.asMinutes);
print(1.5.asHours);
Implementation
Duration get asMilliseconds => Duration(microseconds: (this * 1000).round());