toDuration method

  1. @useResult
Duration toDuration()

Convert this to a Duration.

Offset(1, 2, 3).toDuration(); // Duration(hours: 1, minutes: 2, seconds: 3)

Implementation

@useResult Duration toDuration() => Duration(microseconds: _microseconds);