ms property Null safety

Duration ms

Short-hand for miliseconds

Implementation

Duration get ms {
  final us = (this * 1000).floor();
  return Duration(microseconds: us);
}