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