createTestEntities function

List<BlocxTestEntity> createTestEntities(
  1. int count, {
  2. String prefix = 'Item',
})

Helper that creates a list of count BlocxTestEntity objects.

Implementation

List<BlocxTestEntity> createTestEntities(int count, {String prefix = 'Item'}) {
  return List.generate(
    count,
    (i) => BlocxTestEntity(id: '$i', name: '$prefix $i', order: i),
  );
}