milliseconds property Null safety

Duration milliseconds

Returns a Duration representing the current value as milliseconds.

Example:

1000.milliseconds; // Duration(milliseconds: 1000);

Implementation

Duration get milliseconds {
  return Duration(milliseconds: this);
}