# createSelectWidget method Null safety

1. @override

Widget createSelectWidget(

1. BuildContext context,
2. AppModel app,
3. int privilegeLevel,
4. double height,
5. SelectComponent selected,
6. dynamic editor

)
override

## Implementation

    @override
    Widget createSelectWidget(BuildContext context, AppModel app,
        int privilegeLevel, double height, SelectComponent selected, editor) {
      var appId = app.documentID;
      return BlocProvider<DecoratedContentListBloc>(
        create: (context) => DecoratedContentListBloc(
          eliudQuery: getComponentSelectorQuery(0, app.documentID),
          decoratedContentRepository: decoratedContentRepository(appId: appId)!,
        )..add(LoadDecoratedContentList()),
        child: SelectDecoratedContentWidget(
            app: app,
            height: height,
            containerPrivilege: privilegeLevel,
            selected: selected,
            editorConstructor: editor),
      );
    }