title: how to get the list from paginated table 2 Datatablesource class?
body: <p>Added the paginatedtable2 package, made a source class by extending</p>
  <pre><code>class QueueSource extends DataTableSource {
    late final List&lt;MailData&gt; _queuedata;
    var selectedlist = [];
  </code></pre>
  <p>and selecting the values by using</p>
  <pre><code>DataRow.byIndex(
          selected: selectedlist.contains(_list.queueId),
          onSelectChanged: (value) {
            log('$value $selectedlist');
            if (value != null) {
              if (value) {
                selectedlist.add(_list.queueId);
                notifyListeners();
              } else {
                selectedlist.remove(_list.queueId);
                notifyListeners();
              }
              if (selectedlist.isNotEmpty) {
                isselected = true;
                notifyListeners();
              } else {
                isselected = false;
                notifyListeners();
              }
            }
            log('$value $selectedlist');
  
            //  print('$value');
            //  selectedlist.add(_queuedata[index]);
          },
  </code></pre>
  <p>but how to  get this selectedlist inside my widget where i have used paginateddatatable 2 Widget and update the state when the list is empty or is not empty.</p>