toStringDetails method

String toStringDetails()

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:

Implementation

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