title: Displaying an iframe in Dart
body: <p>Is it possible to display an iframe in Dart? </p>
  
  <p>Below is the code that I am using</p>
  
  <pre><code>void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      final wordPair = WordPair.random();
      return MaterialApp(
        title: 'Welcome to Flutter',
        home: Scaffold(
          appBar: AppBar(
            title: Text('Welcome to Flutter'),
          ),
          body: Center(
            child: Text(wordPair.asPascalCase),  // With this highlighted text.
          ),
        ),
      );
  
    }
  }
  </code></pre>
  
  <p>I am not sure how to add an iframe into this. Below is the snippet that is given in the <a href="https://api.dartlang.org/stable/2.1.0/dart-html/IFrameElement/IFrameElement.html" rel="nofollow noreferrer">documentation</a></p>
  
  <pre><code>factory IFrameElement() =&gt; JS(
      'returns:IFrameElement;creates:IFrameElement;new:true',
      '#.createElement(#)',
      document,
      "iframe");
  </code></pre>