# build method Null safety

1. @override

Widget build(

1. BuildContext context

)
override

Build the SectionForm

## Implementation

    @override
    Widget build(BuildContext context) {
      //var accessState = AccessBloc.getState(context);
      var appId = app.documentID;
      if (formAction == FormAction.showData) {
        return BlocProvider<SectionFormBloc>(
          create: (context) => SectionFormBloc(
            appId,
          )..add(InitialiseSectionFormEvent(value: value)),
          child: MySectionForm(
              app: app, submitAction: submitAction, formAction: formAction),
        );
      }
      if (formAction == FormAction.showPreloadedData) {
        return BlocProvider<SectionFormBloc>(
          create: (context) => SectionFormBloc(
            appId,
          )..add(InitialiseSectionFormNoLoadEvent(value: value)),
          child: MySectionForm(
              app: app, submitAction: submitAction, formAction: formAction),
        );
      } else {
        return Scaffold(
            appBar: StyleRegistry.registry()
                .styleWithApp(app)
                .adminFormStyle()
                .appBarWithString(app, context,
                    title: formAction == FormAction.updateAction
                        ? 'Update Section'
                        : 'Add Section'),
            body: BlocProvider<SectionFormBloc>(
              create: (context) => SectionFormBloc(
                appId,
              )..add((formAction == FormAction.updateAction
                  ? InitialiseSectionFormEvent(value: value)
                  : InitialiseNewSectionFormEvent())),
              child: MySectionForm(
                  app: app, submitAction: submitAction, formAction: formAction),
            ));
      }
    }