VyuhStrings class final

Every user-facing string the framework shows: failure titles and messages, recovery actions and accessibility labels.

Set it once on PlatformWidgetBuilder.strings to translate or reword:

PlatformWidgetBuilder.system.copyWith(
  strings: const VyuhStrings(
    tryAgain: 'Réessayer',
    goHome: 'Accueil',
  ),
)

For a locale that changes at runtime, build the strings from your localizations wherever you create the widget builder.

Annotations

Constructors

VyuhStrings({String tryAgain = 'Try again', String goHome = 'Go home', String restartApp = 'Restart app', String details = 'Details (debug only)', String loading = 'Loading', String contentUnavailable = 'Content unavailable', String appStartFailedTitle = 'The app could not start', String appStartFailedMessage = 'Something went wrong while starting up.', String pageNotFoundTitle = 'Page not found', String noRouteMessage(Uri location) = _noRouteMessage, String pageLoadFailedTitle = 'This page could not be loaded', String contentNotFoundTitle = 'Content not found', String contentLoadFailedTitle = 'This content could not be loaded', String checkConnectionMessage = 'Check your connection and try again.', String missingMessage = 'It may have been moved or removed.', String featureLoadFailedTitle(String featureTitle) = _featureLoadFailedTitle, String featureDisabledTitle(String featureTitle) = _featureDisabledTitle, String featureDisabledMessage = 'This part of the app is turned off right now.'})
const

Properties

appStartFailedMessage → String
Message when the app fails to start.
final
appStartFailedTitle → String
Title when the app fails to start.
final
checkConnectionMessage → String
Message for failures that a retry may fix.
final
contentLoadFailedTitle → String
Title when a part of a page could not be loaded.
final
contentNotFoundTitle → String
Title when a part of a page does not exist.
final
contentUnavailable → String
Accessibility label of the placeholder for a widget that failed to build.
final
details → String
Heading of the debug-only details panel.
final
featureDisabledMessage → String
Message when a lazy feature is turned off.
final
featureDisabledTitle → String Function(String featureTitle)
Title when the lazy feature titled featureTitle is turned off.
final
featureLoadFailedTitle → String Function(String featureTitle)
Title when the lazy feature titled featureTitle fails to load.
final
goHome → String
Go-home button.
final
hashCode → int
The hash code for this object.
no setterinherited
loading → String
Accessibility label of loaders.
final
missingMessage → String
Message for something that is missing.
final
noRouteMessage → String Function(Uri location)
Message when no route matches location.
final
pageLoadFailedTitle → String
Title when a page could not be loaded.
final
pageNotFoundTitle → String
Title when no route matches, or a page does not exist.
final
restartApp → String
Restart button, the last-resort recovery.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tryAgain → String
Retry button.
final

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 Properties

current → VyuhStrings
The strings of the running app, or the defaults when none is running.
no setter