toStringDetails method

  1. @override
String toStringDetails()
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:

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';
}