microseconds property Null safety

Duration microseconds

Return curretn int in Duration of microseconds

This will be truncate()

ex: 1.2 ms --> 1 ms

1.7ms --> 1ms

Implementation

Duration get microseconds {
  final us = this.toInt();
  return Duration(microseconds: us);
}