sectionsList method Null safety
- AppModel app,
- BuildContext context,
- List<
SectionModel> values, - 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),
);
}