inMilliseconds property
The number of whole milliseconds spanned by this Duration.
The returned value can be greater than 999. For example a duration of three seconds and 125 milliseconds has 3125 milliseconds.
Implementation
int get inMilliseconds => _duration ~/ Duration.microsecondsPerMillisecond;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/Duration/inMilliseconds.html