Spec-Zone.ru › Dart 2

dart:core

inMilliseconds property

int inMilliseconds

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.

const duration = Duration(seconds: 3, milliseconds: 125);
print(duration.inMilliseconds); // 3125

Implementation

int get inMilliseconds => _duration ~/ Duration.microsecondsPerMillisecond;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/Duration/inMilliseconds.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API