toString method Null safety

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() =>
    'ContentServiceGetContentRequest{includeTrackOptions: $includeTrackOptions, includePremiumAdUrl: $includePremiumAdUrl, isMicReady: $isMicReady, includeFlexParams: $includeFlexParams, includeAudioReceiptUrl: $includeAudioReceiptUrl, includeAdVersion: $includeAdVersion, includeCompetitiveSepIndicator: $includeCompetitiveSepIndicator, previousTrackList: $previousTrackList, includeListeningHours: $includeListeningHours, flexCapable: $flexCapable, includeMRAIDIsViewableSupport: $includeMRAIDIsViewableSupport, includeListenerUpsellCheck: $includeListenerUpsellCheck, includeTrackLength: $includeTrackLength, stationId: $stationId, includeBingeSkippingInfo: $includeBingeSkippingInfo, includeSharingAdUrl: $includeSharingAdUrl, includeSocialAdUrl: $includeSocialAdUrl, stationToken: $stationToken, includeFlexReplayAdUrl: $includeFlexReplayAdUrl, xplatformAdCapable: $xplatformAdCapable, testCreativeIdString: $testCreativeIdString, supportedTrackTypes: $supportedTrackTypes, includeFlexThumbsDownAdUrl: $includeFlexThumbsDownAdUrl, includeAudioToken: $includeAudioToken, getPlaylistReason: $getPlaylistReason, audioAdPodCapable: $audioAdPodCapable, includeBackstageAdUrl: $includeBackstageAdUrl, includeVoiceTrack: $includeVoiceTrack, includeAudioSkipUrl: $includeAudioSkipUrl, includeFlexSkipAdUrl: $includeFlexSkipAdUrl, stationIsStarting: $stationIsStarting, testLineIdString: $testLineIdString, requestHighQuality: $requestHighQuality, includeChronosAdTokens: $includeChronosAdTokens, currentTrack: $currentTrack, includeExtraParams: $includeExtraParams, includeArtistMessages: $includeArtistMessages, includeCompletePlaylist: $includeCompletePlaylist, includeBannerAd: $includeBannerAd, testMode: $testMode}';