toStringDetails method Null safety

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:


String toStringDetails() {
  assert(status != null);
  switch (status) {
    case AnimationStatus.forward:
      return '\u25B6'; // >
    case AnimationStatus.reverse:
      return '\u25C0'; // <
    case AnimationStatus.completed:
      return '\u23ED'; // >>|
    case AnimationStatus.dismissed:
      return '\u23EE'; // |<<