Home > database >  Why this error is showing The argument type 'List<dynamic>' can't be assigned t
Why this error is showing The argument type 'List<dynamic>' can't be assigned t

Time:08-24

This is the error causing in flutter code The argument type 'List' can't be assigned to the parameter type 'List'

This is my list showing the error

CodePudding user response:

This is because you just added List scoreKeeper which is equivalent to List<dynamic> scoreKeeper.

So instead, do List<Widget> scoreKeeper = [...];

CodePudding user response:

Try providing data type on list like

List<Widget> scoreKeeper = [..
  • Related