toString method

  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() => 'User[id=$id, tenantId=$tenantId, username=$username, displayName=$displayName, websiteUrl=$websiteUrl, email=$email, pendingEmail=$pendingEmail, backupEmail=$backupEmail, pendingBackupEmail=$pendingBackupEmail, signUpDate=$signUpDate, createdFromUrlId=$createdFromUrlId, createdFromTenantId=$createdFromTenantId, createdFromIpHashed=$createdFromIpHashed, verified=$verified, loginId=$loginId, loginIdDate=$loginIdDate, loginCount=$loginCount, optedInNotifications=$optedInNotifications, optedInTenantNotifications=$optedInTenantNotifications, hideAccountCode=$hideAccountCode, avatarSrc=$avatarSrc, isFastCommentsHelpRequestAdmin=$isFastCommentsHelpRequestAdmin, isHelpRequestAdmin=$isHelpRequestAdmin, isAccountOwner=$isAccountOwner, isAdminAdmin=$isAdminAdmin, isBillingAdmin=$isBillingAdmin, isAnalyticsAdmin=$isAnalyticsAdmin, isCustomizationAdmin=$isCustomizationAdmin, isManageDataAdmin=$isManageDataAdmin, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAPIAdmin=$isAPIAdmin, isSiteAdmin=$isSiteAdmin, moderatorIds=$moderatorIds, isImpersonator=$isImpersonator, isCouponManager=$isCouponManager, locale=$locale, digestEmailFrequency=$digestEmailFrequency, notificationFrequency=$notificationFrequency, adminNotificationFrequency=$adminNotificationFrequency, agentApprovalNotificationFrequency=$agentApprovalNotificationFrequency, lastTenantNotificationSentDate=$lastTenantNotificationSentDate, lastReplyNotificationSentDate=$lastReplyNotificationSentDate, ignoredAddToMySiteMessages=$ignoredAddToMySiteMessages, lastLoginDate=$lastLoginDate, displayLabel=$displayLabel, isProfileActivityPrivate=$isProfileActivityPrivate, isProfileCommentsPrivate=$isProfileCommentsPrivate, isProfileDMDisabled=$isProfileDMDisabled, profileCommentApprovalMode=$profileCommentApprovalMode, karma=$karma, passwordHash=$passwordHash, averageTicketAckTimeMS=$averageTicketAckTimeMS, hasBlockedUsers=$hasBlockedUsers, bio=$bio, headerBackgroundSrc=$headerBackgroundSrc, countryCode=$countryCode, countryFlag=$countryFlag, socialLinks=$socialLinks, hasTwoFactor=$hasTwoFactor, isEmailSuppressed=$isEmailSuppressed]';