circles method Null safety

Duration circles(
  1. Duration circleLength
)

Return current int in Duration of circles (You decide circle length)

ex: 2.circles(2.s) means -> 2 cicles of 2s = 4s

Implementation

Duration circles(Duration circleLength) {
  final inUs = circleLength.inMicroseconds;
  return (this * inUs).us;
}