title: Undefined name 'TextSearchOption' FusionSync Flutter PDF Viewer
body: <p>I wanted to load a PDF in my application. For this, I used the SyncFusion PDF Viewer plugin. Everything worked perfectly till this error came up when I tried to add a search bar</p>
  <blockquote>
  <p>Undefined name 'TextSearchOption'. Try correcting the name to one that
  is defined, or defining the name.
  My Code</p>
  </blockquote>
  <pre><code>import 'dart:html';
  
  import 'package:flutter/material.dart';
  import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';
  class pdfvw extends StatefulWidget {
    final String url;
      const pdfvw ({ Key? key, required this.url }): super(key: key);
    @override
    _pdfvw  createState() =&gt; _pdfvw(); 
  }
  class _pdfvw extends State&lt;pdfvw&gt; {
    late PdfViewerController _pdfViewerController;
  late PdfTextSearchResult _searchResult;
  
  @override
  void initState() {
      _pdfViewerController = PdfViewerController();
      _searchResult = PdfTextSearchResult();
      super.initState();
  }
  
  
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text('Syncfusion Flutter PDF Viewer'),
          actions: &lt;Widget&gt;[
            IconButton(
              icon: Icon(
                Icons.search,
                color: Colors.white,
              ),
              onPressed: () async {
                _searchResult = await _pdfViewerController.searchText('the',
                    searchOption: TextSearchOption.caseSensitive);
                setState(() {});
              },
            ),          
            Visibility(
              visible: _searchResult.hasResult,
              child: IconButton(
                icon: Icon(
                  Icons.keyboard_arrow_up,
                  color: Colors.white,
                ),
                onPressed: () {
                    _searchResult.previousInstance();
                },
              ),
            ),
            Visibility(
              visible: _searchResult.hasResult,
              child: IconButton(
                icon: Icon(
                  Icons.keyboard_arrow_down,
                  color: Colors.white,
                ),
                onPressed: () {
                  _searchResult.nextInstance();
                },
              ),
            ),
          ],
        ),
        body: Container(
          child: SfPdfViewer.asset(widget.url),
        ),
      );
    }
  }
  </code></pre>