remove unnecessary brace in string interpolation (#115032)

This commit is contained in:
Phil Quitslund 2022-11-09 17:36:24 -08:00 committed by GitHub
parent 154ae0f11b
commit 008ac174f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -553,9 +553,7 @@ class _MenuAnchorState extends State<MenuAnchor> {
}
void _closeChildren({bool inDispose = false}) {
// TODO(pquitslund): remove when interpolated `$this` parsing is fixed (https://github.com/dart-lang/sdk/issues/50263)
// ignore: unnecessary_brace_in_string_interps
assert(_debugMenuInfo('Closing children of ${this}${inDispose ? ' (dispose)' : ''}'));
assert(_debugMenuInfo('Closing children of $this${inDispose ? ' (dispose)' : ''}'));
for (final _MenuAnchorState child in List<_MenuAnchorState>.from(_anchorChildren)) {
child._close(inDispose: inDispose);
}