title: How to pass Visibility widget as a attribute?
body: <p>I want to hide and unhide the item without wrapping the Visibility widget. (Passing like below).</p>
  <pre><code>TestItem(
          visible: false
          title: 'test',
          prefix: Image.asset(
            &quot;images/test.png&quot;,
            height: 30,
          ),
          onTap: () {
            
          },
    ),
  </code></pre>
  <p>Common class that created for the items.</p>
  <pre><code>class TestItem {
    TestItem({
      required this.title,
      required this.prefix,
      required this.onTap,
      required this.visibility
    });
  
    final String title;
    final Widget prefix;
    final VoidCallback onTap;
    final Visibility visibility;
  }
  </code></pre>