This type mismatch error which means that you provide “String value ” but needs of integer type value
for more information you refere this link Type ‘String’ is not a subtype of type ‘int’ of ‘index’
solved what should I do flutter. _TypeError (type ‘String’ is not a subtype of type ‘int’ of ‘index’) [closed]