toString method

String toString ()
override

Returns a string representation of this object.

Implementation

String toString() => isStopped
    ? 'NowPlaying: -silence-'
    : 'NowPlaying:'
        '\n title: $title'
        '\n artist: $artist'
        '\n album: $album'
        '\n duration: ${duration.inMilliseconds}ms'
        '\n position: ${position.inMilliseconds}ms'
        '\n has image: $hasImage'
        '\n state: $state';