Bloc: How to create a list fixed length in State?

Created on 20 Aug 2020  路  2Comments  路  Source: felangel/bloc

How to create a list fixed length in State?
I need it's length with some cases

question

Most helpful comment

Hi @manhDat0301 馃憢

You can make use of List.generate(length, (index) => Model());

All 2 comments

Hi @manhDat0301 馃憢

You can make use of List.generate(length, (index) => Model());

Thanks a lot! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shawnchan2014 picture shawnchan2014  路  3Comments

komapeb picture komapeb  路  3Comments

craiglabenz picture craiglabenz  路  3Comments

wheel1992 picture wheel1992  路  3Comments

Reidond picture Reidond  路  3Comments