onBuildApp method

  1. @override
  2. @mustCallSuper
Widget onBuildApp(
  1. BuildContext context,
  2. Widget app
)
override

Widgets can be added during the build of MasamuneApp.

The widget generated in MasamuneApp is passed to app.

Returning Widget will build the widget.

MasamuneAppのビルド時にウィジェットを追加することが可能です。

appMasamuneApp内で生成されたウィジェットが渡されます。

Widgetを返すとそのウィジェットがビルドされます。

Implementation

@override
@mustCallSuper
Widget onBuildApp(BuildContext context, Widget app) {
  for (final tmp in masamuneAdapters) {
    app = tmp.onBuildApp(context, app);
  }
  return app;
}