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() {
  return 'PaywallStyleData{bodyFontSize: $bodyFontSize, bodyTextColor: '
      '$bodyTextColor, titleFontSize: $titleFontSize, backgroundColor: '
      '$backgroundColor, skuButtonColor: $skuButtonColor, '
      'skuButtonTextColor: $skuButtonTextColor, termsLinkColor: '
      '$termsLinkColor, titleTextColor: $titleTextColor, bodyShadowColor: '
      '$bodyShadowColor, bodyShadowRadius: $bodyShadowRadius, '
      'titleShadowColor: $titleShadowColor, titleShadowRadius: '
      '$titleShadowRadius, bottomOverlayColor: $bottomOverlayColor, '
      'bottomOverlayCornerRadius: $bottomOverlayCornerRadius, '
      'closeButtonFontSize: $closeButtonFontSize, closeButtonTextColor: '
      '$closeButtonTextColor, closeButtonShadowColor: '
      '$closeButtonShadowColor, closeButtonShadowRadius: '
      '$closeButtonShadowRadius, signInButtonFontSize: '
      '$signInButtonFontSize, signInButtonTextColor: $signInButtonTextColor, '
      'signInButtonShadowColor: $signInButtonShadowColor, '
      'signInButtonShadowRadius: $signInButtonShadowRadius, '
      'purchaseTermsFontSize: $purchaseTermsFontSize, '
      'purchaseTermsTextColor: $purchaseTermsTextColor, '
      'purchaseTermsShadowColor: $purchaseTermsShadowColor, '
      'purchaseTermsShadowRadius: $purchaseTermsShadowRadius, '
      'restoreButtonFontSize: $restoreButtonFontSize, '
      'restoreButtonTextColor: $restoreButtonTextColor, '
      'restoreButtonShadowColor: $restoreButtonShadowColor, '
      'restoreButtonShadowRadius: $restoreButtonShadowRadius, '
      'featuredSkuButtonColor: $featuredSkuButtonColor, '
      'featuredSkuButtonTextColor: $featuredSkuButtonTextColor}';
}