builder property Null safety

GoRouterWidgetBuilder? builder
final

A custom builder for this route.

For example:

GoRoute(
  path: '/',
  builder: (BuildContext context, GoRouterState state) => FamilyPage(
    families: Families.family(
      state.params['id'],
    ),
  ),
),

Implementation

final GoRouterWidgetBuilder? builder;