We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b816801 commit e39fa7aCopy full SHA for e39fa7a
packages/flutter/lib/src/animation/animation_controller.dart
@@ -842,7 +842,13 @@ class AnimationController extends Animation<double>
842
String toStringDetails() {
843
final String paused = isAnimating ? '' : '; paused';
844
final String ticker = _ticker == null ? '; DISPOSED' : (_ticker!.muted ? '; silenced' : '');
845
- final String label = debugLabel == null ? '' : '; for $debugLabel';
+ String label = '';
846
+ assert(() {
847
+ if (debugLabel != null) {
848
+ label = '; for $debugLabel';
849
+ }
850
+ return true;
851
+ }());
852
final String more = '${super.toStringDetails()} ${value.toStringAsFixed(3)}';
853
return '$more$paused$ticker$label';
854
}
0 commit comments