cursor property

Duration get cursor

Implementation

Duration get cursor =>
    // TODO? maybe increase resolution?
    Duration(milliseconds: (_sound.cursor * 1000).toInt());
set cursor (Duration value)

Implementation

set cursor(Duration value) =>
    _sound.cursor = max(0.0, value.inMilliseconds / 1000);