toStringDetails method
override
Provides a string describing the status of this object, but not including information about the object itself.
This function is used by Animation.toString so that Animation subclasses can provide additional details while ensuring all Animation subclasses have a consistent toString style.
The result of this function includes an icon describing the status of this Animation object:
- "▶": AnimationStatus.forward (value increasing)
- "◀": AnimationStatus.reverse (value decreasing)
- "⏭": AnimationStatus.completed (value == 1.0)
- "⏮": AnimationStatus.dismissed (value == 0.0)
Implementation
@override
String toStringDetails() {
final String paused = isAnimating ? '' : '; paused';
final String ticker = _ticker == null ? '; DISPOSED' : (_ticker!.muted ? '; silenced' : '');
String label = '';
assert(() {
if (debugLabel != null) {
label = '; for $debugLabel';
}
return true;
}());
final String more = '${super.toStringDetails()} ${value.toStringAsFixed(3)}';
return '$more$paused$ticker$label';
}