title: Send multiple arguments to the compute function in Flutter
body: <p>I was trying to use the compute function in Flutter.</p>
  
  <pre><code>void _blockPressHandler(int row, int col) async {
  //    Called when user clicks any block on the sudoku board . row and col are the corresponding row and col values ;
      setState(() {
        widget.selCol = col;
        }
      });
  
      bool boardSolvable;
      boardSolvable = await compute(SudokuAlgorithm.isBoardInSudoku , widget.board , widget.size) ;
  
    }
  </code></pre>
  
  <p><code>isBoardInSudoku</code> is a static method of class SudokuAlgorithm. Its present in another file. Writing the above code , tells me that  </p>
  
  <p><code>error: The argument type '(List&lt;List&lt;int&gt;&gt;, int) → bool' can't be assigned to the parameter type '(List&lt;List&lt;int&gt;&gt;) → bool'. (argument_type_not_assignable at [just_sudoku] lib/sudoku/SudokuPage.dart:161)</code></p>
  
  <p>How do i fix this? Can it be done without bringing the SudokuAlgorithm class's methods out of its file ? How to send multiple arguments to the compute function ? </p>
  
  <blockquote>
    <p><code>static bool isBoardInSudoku(List&lt;List&lt;int&gt;&gt;board , int size ){ }</code> is my isBoardInSudoku function.</p>
  </blockquote>