sectionsList method Null safety

Widget sectionsList(
  1. AppModel app,
  2. BuildContext context,
  3. List<SectionModel> values,
  4. SectionListChanged trigger
)

Implementation

static Widget sectionsList(AppModel app, BuildContext context,
    List<SectionModel> values, SectionListChanged trigger) {
  SectionInMemoryRepository inMemoryRepository = SectionInMemoryRepository(
    trigger,
    values,
  );
  return MultiBlocProvider(
    providers: [
      BlocProvider<SectionListBloc>(
        create: (context) => SectionListBloc(
          sectionRepository: inMemoryRepository,
        )..add(LoadSectionList()),
      )
    ],
    child: SectionListWidget(app: app, isEmbedded: true),
  );
}