# toContainer method Null safety

Widget toContainer(

1. AppModel app,
2. MemberModel? member,
3. BackgroundModel? background,
4. Widget child

)

## Implementation

    static Widget toContainer(AppModel app, MemberModel? member,
        BackgroundModel? background, Widget child) {
      return Container(
          clipBehavior:
              BoxDecorationHelper.determineClipBehaviour(app, member, background),
          margin: BoxDecorationHelper.determineMargin(app, member, background),
          padding: BoxDecorationHelper.determinePadding(app, member, background),
          decoration: BoxDecorationHelper.boxDecoration(app, member, background),
          child: child);
    }