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 r'''
textStyle: The text style for the message.

 Defaults to:

 ```dart
 textTheme.caption
 ```;;titleTextStyle: The text style for the title.

 Defaults to:

 ```dart
 textTheme.caption.copyWith(fontWeight: FontWeight.w500)
 ```;;titlePadding: The title padding.

 Defaults to:

 ```dart
 EdgeInsets.only(bottom: 4)
 ```;;padding: The box padding.

 Defaults to:

 ```dart
 EdgeInsets.all(12.0)
 ```;;highlightColor: The highlight color for the top border.

 Defaults to:

 ```dart
 colorScheme.shade[100]
 ```;;backgroundColor: The background color.

 Defaults to:

 ```dart
 colorScheme.background[0]
 ```;;itemSpacing: The space between two items.

 Defaults to:

 ```dart
 12.0
 ```;;infoColor: The info color.

 Defaults to:

 ```dart
 Color.fromARGB(0xff, 0x99, 0x99, 0x99)
 ```;;errorColor: The error color.

 Defaults to:

 ```dart
 Color.fromARGB(0xff, 0xdd, 0x3c, 0x3c)
 ```;;warningColor: The warning color.

 Defaults to:

 ```dart
 Color.fromARGB(0xff, 0xdd, 0xdd, 0x3c)
 ```;;successColor: The success color.

 Defaults to:

 ```dart
 Color.fromARGB(0xff, 0x3c, 0xdd, 0x3c)
 ```;;animationCurve: The animation curve.

 Defaults to:

 ```dart
 Curves.easeInCubic
 ```;;duration: The duration of the message.

 Defaults to:

 ```dart
 Duration(seconds: 6)
 ```;;animationDuration: The duration of the message animation.

 Defaults to:

 ```dart
 Duration(milliseconds: 100)
 ```;;
''';
}