registerRoutes static method

dynamic registerRoutes()

Implementation

static registerRoutes() {
  assert(() {
    if (afterSignOutRoute == null ||
        afterSignOutRoute == null ||
        donate == null ||
        termsAndConditions == null ||
        privacyPolicy == null) {
      throw AssertionError(
        'Ensure AuthenticationRoutes.afterSignOutRoute, AuthenticationRoutes.afterSignOutRoute, '
        'AuthenticationRoutes.termsAndConditions, AuthenticationRoutes.privacyPolicy, and AuthenticationRoutes.donate'
        'are set before calling AuthenticationRoutes.registerRoutes()',
      );
    }
    return true;
  }());
  Routes.registerRoutes([
    signIn,
    afterSignOutRoute!,
    afterSignOutRoute!,
    donate!,
    termsAndConditions!,
    privacyPolicy!
  ]);
}