DievasLocalizations class abstract

Localization strings for Dievas component-internal copy.

Consuming apps must register the delegate and supported locales in their MaterialApp or WidgetsApp:

MaterialApp(
  localizationsDelegates: DievasLocalizations.localizationsDelegates,
  supportedLocales: DievasLocalizations.supportedLocales,
  ...
)

Access strings in widgets via context.l10n (see DievasL10nExtension).

Constructors

DievasLocalizations()

Properties

alertDismissLabel String
Accessibility label for the alert dismiss button.
no setter
bottomSheetCloseLabel String
Label for the bottom sheet close action (screen readers).
no setter
bottomSheetDragHandleLabel String
Accessibility label for the bottom sheet drag handle.
no setter
emptyStateDefaultDescription String
Default body shown when DievasEmptyState has no description provided.
no setter
emptyStateDefaultTitle String
Default title shown when DievasEmptyState has no title provided.
no setter
hashCode int
The hash code for this object.
no setterinherited
modalCloseLabel String
Accessibility label for the modal close button.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snackbarDismissLabel String
Default label for the snackbar dismiss action.
no setter
tooltipLabel String
Semantic label announced by screen readers when a tooltip is shown.
no setter

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

of(BuildContext context) DievasLocalizations
Returns the nearest DievasLocalizations instance from context.

Constants

localizationsDelegates → const List<LocalizationsDelegate>
The standard set of delegates needed to resolve DievasLocalizations.
supportedLocales → const List<Locale>
Locales this package provides translations for.