builder property

(Widget Function(BuildContext context, Widget? child)?) builder
final

If routerConfig is not specified, a callback that is executed after the widget created by onGenerateRoute or other methods is generated.

The build context is passed to context and the generated widget to child.

Return a widget with child wrapped in the return value.

routerConfigが指定されていない場合、onGenerateRouteなどで作成されたウィジェットが生成された後に実行されるコールバック。

contextにビルドコンテキスト、childに生成されたウィジェットが渡されます。

戻り値にchildをラッピングしたウィジェットを返してください。

Implementation

final Widget Function(BuildContext context, Widget? child)? builder;