title: Flutter: Infinitely nested closures inspecting FloatingActionButton 'onPressed' callback
body: <p>I'm really puzzled by why when I inspect a onPressed closure of a button widget in VSCode debugger I see a closure inside a closure inside a closure, and so on to infinity. You can see this in the screenshot below.</p>
  <p>Can anyone explain to me what's going on here? This is just the default app and I've moved the FloatingActionButton into its own variable, which I'm inspecting at a breakpoint.</p>
  <p>Is this correct behaviour and if so can someone explain to me why my closure isn't just a single one? Thanks!</p>
  <p>-- Edit: steps to reproduce --
  Make the default flutter project, move the FloatingActionButton into its own final variable, and change the closure to just contain a simple print statement.
  Trigger the debugger once the button has been created and inspect it in the variable inspector and you see infinitely nested closures in onPressed property.</p>
  <p>Code for button here:</p>
  <pre><code>final Widget button = FloatingActionButton(
      onPressed: () {
        print(&quot;button pressed&quot;);
      },
      tooltip: 'Increment',
      child: const Icon(Icons.add),
    );
  </code></pre>
  <p>Here is the screenshot of the inspector.
  <a href="https://i.stack.imgur.com/SFEvA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SFEvA.png" alt="Inspector" /></a></p>