millisecondsOnly property

int get millisecondsOnly

Returns the milliseconds component of the Duration.

Example:

Duration(seconds: 4, milliseconds: 5).millisecondsOnly; // 5

Implementation

int get millisecondsOnly => inMilliseconds.remainder(1000);