SheenStrings class Foundation

The few words sheen widgets show or announce when you give them none: button labels such as Cancel and Done, and screen-reader labels such as "Clear" or "Show password".

The defaults are English. Translate them once on SheenScope:

SheenScope(
  strings: const SheenStrings(cancel: 'Annuler', done: 'OK', search: 'Rechercher'),
  child: app,
)

Every widget that shows text still takes it as a parameter; these are only the fallbacks.

Mixed-in types
Annotations

Constructors

SheenStrings({String cancel = 'Cancel', String done = 'Done', String search = 'Search', String clear = 'Clear', String close = 'Close', String back = 'Back', String showPassword = 'Show password', String hidePassword = 'Hide password', String next = 'Next', String previous = 'Previous', String more = 'More', String selected = 'Selected'})
Strings with English defaults; pass the ones you translate.
const

Properties

back → String
The label of back buttons.
final
cancel → String
The button that dismisses a sheet or dialog without a change.
final
clear → String
The label of a field's clear button.
final
close → String
The label of close buttons and of the barrier behind sheets and dialogs.
final
done → String
The button that confirms a sheet.
final
hashCode → int
The hash code for this object.
no setteroverride
hidePassword → String
The label of a password field's eye button while the password is shown.
final
more → String
The label of overflow ("more") buttons.
final
next → String
The label of "next" arrows (months, pages).
final
previous → String
The label of "previous" arrows (months, pages).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
The hint of search fields.
final
selected → String
What a screen reader adds to a selected choice.
final
showPassword → String
The label of a password field's eye button while the password is hidden.
final

Methods

copyWith({String? cancel, String? done, String? search, String? clear, String? close, String? back, String? showPassword, String? hidePassword, String? next, String? previous, String? more, String? selected}) → SheenStrings
A copy with the given strings replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

of(BuildContext context) → SheenStrings
The nearest strings set on a SheenScope, or the English defaults.