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() {
  assert(status != null);
  String icon;
  switch (status) {
    case AnimationStatus.forward:
      icon = '\u25B6'; // >
      break;
    case AnimationStatus.reverse:
      icon = '\u25C0'; // <
      break;
    case AnimationStatus.completed:
      icon = '\u23ED'; // >>|
      break;
    case AnimationStatus.dismissed:
      icon = '\u23EE'; // |<<
      break;
  }
  assert(icon != null);
  return '$icon';
}