MagicStarterConfig class

Feature toggle helper for Magic Starter.

All opt-in features default to false — matching the Laravel backend where the features array is empty by default. Each feature must be explicitly enabled in the host app's magic_starter config.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

accountDeletionUrl() → String?
Returns the page where a card-billed subscription can be cancelled and the account deleted (magic_starter.account.deletion_url), or null when it is not set.
applyUserLocale() → bool
Returns whether a signed-in user's saved locale preference is applied to the running app automatically on sign-in and on restore.
authPrefix() → String
Returns the configured auth route prefix (e.g. /auth).
billable() → MagicStarterBillable
Returns which subject a store purchase is billed to (magic_starter.billing.billable), MagicStarterBillable.user when the key is unset.
billingRoute() → String
Returns the configured billing route (e.g. /teams/billing).
billingWebOrigin() → String?
Returns the host app's configured web origin (magic_starter.billing.web_origin), or null when it is unset.
defaultLocale() → String
Returns the default locale for new users.
defaultTimezone() → String
Returns the default timezone for new users.
emailIdentity() → bool
Returns whether email-based identity is enabled.
handoffConfirmsWithoutSession() → bool
Returns whether a handoff asks "Sign in as ...?" when no session is open (magic_starter.handoff.confirm_without_session, default true).
handoffRoute() → String
Full path for the sign-in handoff page.
handoffSignedOutRoute() → String
Returns where a signed-out handoff visit without a code goes, carrying its next (magic_starter.handoff.signed_out_route): the login route when unset or blank.
hasAnalyticsFeatures() → bool
Returns whether the account-level analytics opt-out is enabled: the "Share usage data" switch on the Email & privacy page, and applying the account's choice through the host's applyAnalyticsOptOut hook, which MagicStarterServiceProvider.boot() requires while this is on.
hasAppUpdateFeatures() → bool
Returns whether the app update banner is enabled (magic_starter.features.app_update).
hasBillingFeatures() → bool
Returns whether billing starter features are enabled.
hasEmailVerificationFeatures() → bool
Returns whether email verification starter features are enabled.
hasExtendedProfileFeatures() → bool
Returns whether extended profile fields (phone, timezone, language) are enabled.
hasGuestAuthFeatures() → bool
Returns whether guest authentication starter features are enabled.
hasHandoffFeatures() → bool
Returns whether the sign-in handoff page (/auth/handoff) is enabled (magic_starter.features.handoff).
Returns whether at least one legal link (terms or privacy) is configured.
hasNewsletterFeatures() → bool
Returns whether newsletter starter features are enabled.
hasNotificationFeatures() → bool
Returns whether notification starter features are enabled.
hasPhoneOtpFeatures() → bool
Returns whether phone OTP starter features are enabled.
hasProfilePhotoFeatures() → bool
Returns whether profile photo starter features are enabled.
hasRegistrationFeatures() → bool
Returns whether registration starter features are enabled.
hasReleasesFeatures() → bool
Returns whether the changelog page, its settings hub row and the app version caption are enabled (magic_starter.features.releases).
hasSessionsFeatures() → bool
Returns whether sessions management starter features are enabled.
hasSocialLoginFeatures() → bool
Returns whether social login starter features are enabled.
hasStoreReviewFeatures() → bool
Returns whether the native store review prompt is enabled (magic_starter.features.store_review).
hasSupportAttachmentsFeatures() → bool
Returns whether support messages can carry image and PDF attachments (magic_starter.features.support_attachments).
hasSupportChatFeatures() → bool
Returns whether the support chat launcher and its floating panel are enabled (magic_starter.features.support_chat). Needs hasSupportFeatures: false whenever the support desk itself is off.
hasSupportClientContextFeatures() → bool
Returns whether a new conversation carries the client context: app and build version, platform, OS, locale and timezone (magic_starter.features.support_client_context). Needs hasSupportFeatures.
hasSupportCsatFeatures() → bool
Returns whether the thumbs rating of a resolved conversation is enabled (magic_starter.features.support_csat). Needs hasSupportFeatures.
hasSupportFeatures() → bool
Returns whether the support desk starter features are enabled.
hasSupportFeedbackFeatures() → bool
Returns whether the occasional 0-10 feedback card is enabled (magic_starter.features.support_feedback).
hasTeamFeatures() → bool
Returns whether team-related starter features are enabled.
hasTimezoneFeatures() → bool
hasTimezoneOrExtendedProfileFeatures() → bool
Returns whether timezone list features are enabled. Returns whether timezone selection should be shown. True when either the dedicated timezones feature or the extended-profile feature (which includes timezone) is enabled.
hasTwoFactorFeatures() → bool
Returns whether two-factor authentication starter features are enabled.
homeRoute() → String
Returns the configured home route path.
invitationAcceptRoute(String token) → String
Full path for invitation acceptance page.
loginRoute() → String
Returns the configured login route path.
maxRetries() → int
Returns the configured maximum number of retries for failed requests.
notificationPreferencesRoute() → String
Full path for the notification preferences/settings page.
notificationsPrefix() → String
Returns the configured notifications route prefix (e.g. /notifications).
notificationsRoute() → String
Full path for the notifications list page.
phoneIdentity() → bool
Returns whether phone-based identity is enabled.
privacyUrl() → String?
Returns the configured Privacy Policy URL, or null if not set (blank included, as for termsUrl).
profilePrefix() → String
Returns the configured profile route prefix (e.g. /settings).
profileRoute() → String
Full path for profile settings page.
pushExternalIdPrefix() → String
Returns the prefix a push external id carries before the user's own id.
requestTimeoutSeconds() → int
Returns the configured request timeout in seconds.
settingsAppearanceRoute() → String
Full path for the Appearance (theme) settings sub-page.
settingsChangelogRoute() → String
Full path for the Changelog ("What's new") settings sub-page.
settingsConnectedAccountsRoute() → String
Full path for the Connected accounts security sub-page.
settingsHubRoute() → String
Full path for the iOS-style settings hub (the drill-down index).
settingsLanguageRoute() → String
Full path for the Language settings sub-page.
settingsNewsletterRoute() → String
Full path for the Newsletter settings sub-page.
settingsPasswordRoute() → String
Full path for the Password security sub-page.
settingsSessionsRoute() → String
Full path for the Active Sessions security sub-page.
settingsTimezoneRoute() → String
Full path for the Timezone settings sub-page.
settingsTwoFactorRoute() → String
Full path for the Two-Factor security sub-page.
storeReviewAppStoreId() → String?
Returns the App Store id the "Rate us" action opens (magic_starter.store_review.app_store_id), or null when unset.
storeReviewIntervalDays() → int
Returns the fewest days between two store review prompts (magic_starter.store_review.interval_days).
storeReviewMinAccountDays() → int
Returns how old an account must be before the store review prompt can show (magic_starter.store_review.min_account_days).
supportAttachmentExtensions() → List<String>
Returns the attachment extensions the picker offers, lowercase and without a dot (magic_starter.support.attachments.extensions). Same pairing with the backend as supportAttachmentMaxFiles.
supportAttachmentMaxBytes() → int
Returns the largest attachment in bytes (magic_starter.support.attachments.max_bytes). Same pairing with the backend as supportAttachmentMaxFiles.
supportAttachmentMaxFiles() → int
Returns how many files one support message can carry (magic_starter.support.attachments.max_files).
supportCreateRoute() → String
Full path for the new support conversation page.
supportedLocales() → List<String>
Returns the list of supported locales.
supportMessageMaxLength() → int
Returns the longest message the support composer counts against (magic_starter.support.message_max_length).
supportRoute() → String
Full path for the support conversation list.
supportThreadPath(Object id) → String
Full path to the support conversation id, the route to navigate to.
supportThreadRoute() → String
Full path pattern for one support conversation thread.
supportTopics() → List<String>
Returns the topics a customer can open a support conversation under (magic_starter.support.topics).
teamCreateRoute() → String
Full path for team creation page.
teamSettingsRoute() → String
Full path for team settings page.
teamsPrefix() → String
Returns the configured teams route prefix (e.g. /teams).
termsUrl() → String?
Returns the configured Terms of Service URL, or null if not set.
twoFactorChallengeRoute() → String
Full path for the two-factor challenge page.