to Solve The argument type 'String' can't be assigned to the parameter type 'int' Error Simple Solution is You have to set data the variable to List type. Just Like Below Example. Now you can use the data variable name parameter with your index. Same as below.Your error must be solved by this solution.