title: How to reuse the contents of the same widget in flutter?
body: <p>I want to use the same instance of a widget in multiple places, changes in one place will be synchronized to another place.</p>
  
  <p>But using the same instance in multiple places looks like multiple different instances.</p>
  
  <p>So how can I achieve the feat?</p>
  
  <pre class="lang-dart prettyprint-override"><code>  var test = InAppWebView(
      // ...
    );
  
    Widget build(BuildContext context) {
      return Scaffold(
        body: PageView(
          children: [
            test,  // widget one
            test,  // widget two
          ],
          controller: _pageController,
          physics: NeverScrollableScrollPhysics(),
          onPageChanged: onPageChanged,
        ),
       ),
      }
  </code></pre>
  
  <blockquote>
    <p>I'm use <a href="https://github.com/pichillilorenzo/flutter_inappbrowser" rel="noreferrer">flutter_inappbrowser</a>.</p>
  </blockquote>
  
  <p>Widget one and widget two use the same instance, but when I open the web page with widget one, widget two is unaffected.</p>
  
  <p>I want widget one and widget two to be the same widget, that when widget one changes, widget two will also be affected.</p>