- override
Returns a string representation of this object.
Every line of the output should be prefixed by prefix
.
If indentPrefix
is non-null, then the description can be further split
into sublines, and each subline should be prefixed with indentPrefix
(rather that prefix
). This is used, for example, by BoxDecoration
for
the otherwise quite verbose BoxShadow
descriptions.
Source
@override String toString([String prefix = '', String prefixIndent ]) { final String extra = _inTransition ? ', transition $_position:$_opacity' : ''; if (swatch == null) return '$prefix$runtimeType(null, $style$extra)'; return '$prefix$runtimeType(${swatch[_lightShade]}/${swatch[_darkShade]} on $textColor, $style$extra)'; }