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 stat: $state';