# fab method Null safety

Widget? fab(

1. BuildContext aContext,
2. AccessState accessState

)

## Implementation

    Widget? fab(BuildContext aContext, AccessState accessState) {
      return !accessState.memberIsOwner(widget.app.documentID)
          ? null
          : StyleRegistry.registry()
              .styleWithApp(widget.app)
              .adminListStyle()
              .floatingActionButton(
              widget.app,
              context,
              'PageFloatBtnTag',
              Icon(Icons.add),
              onPressed: () {
                Navigator.of(context).push(
                  pageRouteBuilder(widget.app,
                      page: BlocProvider.value(
                          value: BlocProvider.of<SimpleImageListBloc>(context),
                          child: SimpleImageForm(
                              app: widget.app,
                              value: null,
                              formAction: FormAction.addAction))),
                );
              },
            );
    }