toStringDetails method
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
String toStringDetails() {
return switch (status) {
AnimationStatus.forward => '\u25B6', // >
AnimationStatus.reverse => '\u25C0', // <
AnimationStatus.completed => '\u23ED', // >>|
AnimationStatus.dismissed => '\u23EE', // |<<
};
}