mirror of
https://github.com/flutter/flutter
synced 2024-10-04 07:19:46 +00:00
Fix wasted memory caused by debug fields - 16 bytes per object (when adding that should-be-removed field crosses double-word alignment) (#113927)
This commit is contained in:
parent
b816801abd
commit
e39fa7a836
|
@ -842,7 +842,13 @@ class AnimationController extends Animation<double>
|
|||
String toStringDetails() {
|
||||
final String paused = isAnimating ? '' : '; paused';
|
||||
final String ticker = _ticker == null ? '; DISPOSED' : (_ticker!.muted ? '; silenced' : '');
|
||||
final String label = debugLabel == null ? '' : '; for $debugLabel';
|
||||
String label = '';
|
||||
assert(() {
|
||||
if (debugLabel != null) {
|
||||
label = '; for $debugLabel';
|
||||
}
|
||||
return true;
|
||||
}());
|
||||
final String more = '${super.toStringDetails()} ${value.toStringAsFixed(3)}';
|
||||
return '$more$paused$ticker$label';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue