feature function

dynamic feature({
  1. List<RouteBase> routes()?,
})

Implementation

feature({List<go.RouteBase> Function()? routes}) => FeatureDescriptor(
      name: 'auth',
      title: 'Authentication UI',
      icon: Icons.account_circle_outlined,
      extensions: [
        ContentExtensionDescriptor(contents: [
          CardDescriptor(
            layouts: [
              AuthUserCardLayout.typeDescriptor,
            ],
          ),
        ], contentBuilders: [
          EmailPasswordForm.contentBuilder,
          ForgotPasswordForm.contentBuilder,
          OAuthSignIn.contentBuilder,
          PhoneOtpForm.contentBuilder,
          HintActionText.contentBuilder,
        ])
      ],
      routes: routes ??
          () => [
                CMSRoute(path: '/login'),
                CMSRoute(path: '/signup'),
                CMSRoute(path: '/forgot-password'),
              ],
    );