SheenMusicStrings class Music
The words the music widgets show or announce when you give them none.
The defaults are English. Translate them once with a SheenMusicScope above your app:
SheenMusicScope(
strings: const SheenMusicStrings(play: 'Lecture', pause: 'Pause'),
child: app,
)
- Mixed-in types
- Annotations
Constructors
- SheenMusicStrings({String play = 'Play', String pause = 'Pause', String next = 'Next', String previous = 'Previous', String shuffleOn = 'Shuffle: on', String shuffleOff = 'Shuffle: off', String repeatOff = 'Repeat: off', String repeatAll = 'Repeat: all', String repeatOne = 'Repeat: this song', String nowPlaying = 'Now playing', String save = 'Save to this phone', String saving = 'Saving to this phone', String saved = 'On this phone', String more = 'More', String remove = 'Remove', String openPlayer = 'Open player', String position = 'Position', String reorder = 'Drag to reorder', String skipBack = 'Back {n} seconds', String skipForward = 'Forward {n} seconds', String speed = 'Speed', String chapters = 'Chapters', String continueListening = 'Continue listening', String chapterFrom = 'From {time}', String minutes = '{m} min', String hoursMinutes = '{h} h {m} min'})
-
Strings with English defaults; pass the ones you translate.
const
Properties
- chapterFrom → String
-
Where a chapter starts, under its title;
{time}is the time.final - chapters → String
-
The chapter list.
final
- continueListening → String
-
The heading of the
SheenResumeCard.final - hashCode → int
-
The hash code for this object.
no setterinherited
- hoursMinutes → String
-
A length of an hour or more;
{h}and{m}are the hours and minutes.final - minutes → String
-
A length under an hour (a chapter);
{m}is the minutes.final - more → String
-
The menu button of a row.
final
- next → String
-
Next song.
final
- nowPlaying → String
-
What a screen reader says for the playing bars.
final
- openPlayer → String
-
Opening the full player from the mini player.
final
- pause → String
-
Pause button.
final
- play → String
-
Play button.
final
- position → String
-
The seek bar.
final
- previous → String
-
Previous song.
final
- remove → String
-
Removing a row.
final
- reorder → String
-
A drag handle.
final
- repeatAll → String
-
The repeat button when the list repeats.
final
- repeatOff → String
-
The repeat button when nothing repeats.
final
- repeatOne → String
-
The repeat button when one song repeats.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- save → String
-
The save button of a song that is not stored.
final
- saved → String
-
The mark of a song stored on the device.
final
- saving → String
-
The save button while the song is being stored.
final
- shuffleOff → String
-
The shuffle button while shuffle is off.
final
- shuffleOn → String
-
The shuffle button while shuffle is on.
final
- skipBack → String
-
The skip-back button of long audio;
{n}is the number of seconds.final - skipForward → String
-
The skip-forward button of long audio;
{n}is the number of seconds.final - speed → String
-
The playback speed control.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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.
inherited
Static Methods
-
of(
BuildContext context) → SheenMusicStrings - The strings of the nearest SheenMusicScope, or the English defaults.