# createNewComponent method Null safety

1. @override

void createNewComponent(

1. AppModel app,
2. BuildContext context,
3. EditorFeedback feedback

)
override

## Implementation

    @override
    void createNewComponent(
        AppModel app, BuildContext context, EditorFeedback feedback) {
      _openIt(
          app,
          context,
          true,
          BookletModel(
            appId: app.documentID,
            documentID: newRandomKey(),
            description: 'New booklet',
            conditions: StorageConditionsModel(
                privilegeLevelRequired:
                    PrivilegeLevelRequiredSimple.noPrivilegeRequiredSimple),
          ),
          feedback);
    }