PlassLabels class

Every word this package says on its own behalf.

There are two kinds of string in a widget library and only one of them belongs here. A PlButton's child, a PlAlert's message and a PlIconButton's required label are the caller's words: they arrive in whatever language the application is written in. What is in this class is the other kind — the words a widget has to produce itself because nobody handed it any: "Close" on a modal's ×, "Previous page" on a pagination arrow, "Skip to content" on a layout's first link.

A field is a meaning, not a widget. "Close" is one word whether it is on a modal, a drawer, a popover or a toast, so it is one field — a translator who had to answer it four times would be transcribing rather than translating.

The dates are deliberately absent. DateFormat and the platform already know what July is called in more languages than this file ever will.

PlPickerLabels is another name for this class, kept because the pickers were the first widgets that needed any of it.

Annotations

Constructors

PlassLabels({String close = 'Close', String cancel = 'Cancel', String confirm = 'Confirm', String acknowledge = 'OK', String search = 'Search', String selectAll = 'Select all', String selectRow = 'Select row', String sortedAscending = 'Sorted, smallest first', String sortedDescending = 'Sorted, largest first', String remove = 'Remove', String dismiss = 'Dismiss', String open = 'Open', String previous = 'Previous', String next = 'Next', String reveal = 'Reveal', String hide = 'Hide', String increase = 'Increase', String decrease = 'Decrease', String preview = 'Preview', String empty = 'Nothing here', String optional = 'Optional', String breadcrumb = 'Breadcrumb', String breadcrumbExpand = 'Show the hidden steps', String carousel = 'Carousel', String carouselPrevious = 'Previous slide', String carouselNext = 'Next slide', String commandPalette = 'Command palette', String commandPalettePlaceholder = 'Search commands', String gallery = 'Gallery', String chart = 'Chart', String minimize = 'Minimize', String maximize = 'Maximize', String restore = 'Restore', String resizeWindow = 'Resize window', String overlay = 'Overlay', String pagination = 'Pagination', String paginationPrevious = 'Previous page', String paginationNext = 'Next page', String paginationFirst = 'First page', String paginationLast = 'Last page', String rating = 'Rating', String sidebar = 'Sidebar', String sidebarOpen = 'Open sidebar', String sidebarClose = 'Close sidebar', String sidebarResize = 'Resize sidebar', String skipToContent = 'Skip to content', String backToTop = 'Back to top', String onThisPage = 'On this page', String typing = 'Typing…', String messageSending = 'Sending', String messageSent = 'Sent', String messageDelivered = 'Delivered', String messageRead = 'Read', String messageFailed = 'Not delivered', String spoilerWarning = 'This may contain spoilers', String filePickerTitle = 'Choose files', String newTab = '(opens elsewhere)', String transferAvailable = 'Available', String transferSelected = 'Selected', String transferToSelected = 'Move to selected', String transferToAvailable = 'Move to available', String copy = 'Copy', String copied = 'Copied', String copyFailed = 'Could not copy', String raw = 'Raw', String code = 'Code', String previousMonth = 'Previous month', String nextMonth = 'Next month', String previousYear = 'Previous year', String nextYear = 'Next year', String previousYears = 'Previous years', String nextYears = 'Next years', String chooseMonth = 'Choose a month', String chooseYear = 'Choose a year', String today = 'Today', String thisMonth = 'This month', String thisYear = 'This year', String now = 'Now', String clear = 'Clear', String done = 'Done', String skip = 'Skip', String hour = 'Hour', String minute = 'Minute', String second = 'Second', String meridiem = 'AM/PM', String start = 'Start', String end = 'End', String paginationPage(int page) = _englishPaginationPage, String ratingValue(num value, int count) = _englishRatingValue, String ratingNone = 'No rating', String carouselSlide(int index, int count) = _englishCarouselSlide, String galleryItem(int index, int count) = _englishGalleryItem, String removeItem(String name) = _englishRemoveItem, String addCustom(String name) = _englishAddCustom, String howToStep(int index, int count) = _englishHowToStep, String transferMoved(int count, String list) = _englishTransferMoved})
Creates a set of labels. Anything left out is English.
const

Properties

acknowledge String
The one button on a message that only needs to have been read.
final
addCustom String Function(String name)
The row that offers what was typed as a value of its own.
final
backToTop String
The button that goes back up a long screen.
final
The trail's own name.
final
The button that opens the steps it folded away.
final
cancel String
The way out of a question that has two answers.
final
The reel's own name.
final
carouselNext String
See carouselPrevious.
final
carouselPrevious String
Its two steppers, which move by a slide.
final
carouselSlide String Function(int index, int count)
One slide's name, which is also its dot's.
final
chart String
What a drawing of numbers is called when the caller has not named it.
final
chooseMonth String
The header button that opens the month grid.
final
chooseYear String
And the one that opens the year grid.
final
clear String
The action that empties the picker.
final
close String
The × on a modal, a drawer, a popover, a toast.
final
code String
What a block of code is called when it has neither a title nor a language.
final
commandPalette String
The palette's own name.
final
commandPalettePlaceholder String
The placeholder in its field.
final
confirm String
The other one.
final
copied String
See copy.
final
copy String
The code block's bar: the button, what it says once it has worked, and what it says when the clipboard refused.
final
copyFailed String
See copy.
final
decrease String
See increase.
final
dismiss String
Sends a message away without answering it.
final
done String
And the one that closes it, or a tour.
final
empty String
What a list says when it has nothing in it.
final
end String
See start.
final
filePickerTitle String
What a file picker's box says when the caller has not said.
final
The wall of pictures' own landmark.
final
galleryItem String Function(int index, int count)
Where a picture sits in a gallery: said after a tile's own words, and drawn as the viewer's counter.
final
hashCode int
The hash code for this object.
no setteroverride
hide String
And re-covers it.
final
hour String
The clock's columns.
final
howToStep String Function(int index, int count)
What a screen reader hears before a how-to step.
final
increase String
A number field's two steppers.
final
maximize String
And its maximize button.
final
meridiem String
See hour.
final
messageDelivered String
The same, once it has arrived.
final
messageFailed String
The same, when it did not arrive.
final
messageRead String
The same, once it has been read.
final
messageSending String
What a chat bubble's mark says while the message is on its way.
final
messageSent String
The same, once it has left.
final
minimize String
What a window's minimize button is called.
final
minute String
See hour.
final
newTab String
Read out after a link that leaves the screen, and never drawn.
final
next String
See previous.
final
nextMonth String
See previousMonth.
final
nextYear String
See previousYear.
final
nextYears String
See previousYears.
final
now String
Its shortcut to this moment.
final
onThisPage String
The table of contents' own name.
final
open String
Opens a list a field is attached to.
final
optional String
Marks a step, or anything else, that may be left out.
final
overlay String
What a sheet over the whole screen is called when it has no name.
final
pagination String
The pager's own name.
final
paginationFirst String
See paginationPrevious.
final
paginationLast String
See paginationPrevious.
final
paginationNext String
See paginationPrevious.
final
paginationPage String Function(int page)
A page button's name.
final
paginationPrevious String
Its four steppers, which move by a page.
final
preview String
Opens a picture over the screen.
final
previous String
A direction, on the widgets that only move one step.
final
previousMonth String
The calendar's steppers, in day view.
final
previousYear String
The same steppers in month view, where they move by a year.
final
previousYears String
And in year view, where they move by a page of twelve.
final
rating String
The stars' group.
final
ratingNone String
And a read-only row with none.
final
ratingValue String Function(num value, int count)
What one star is called, and a read-only row with a score.
final
raw String
The toggle that drops a block's colouring.
final
remove String
Takes one thing out of a set.
final
removeItem String Function(String name)
A remove button named after what it takes away: a file, a chip.
final
resizeWindow String
What a window's resize corner is called.
final
restore String
What that button is called once the window is maximized.
final
reveal String
Uncovers hidden content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Names a search field the caller did not name.
final
second String
See hour.
final
selectAll String
Ticks everything in a list at once.
final
selectRow String
Ticks one row of a table, whose own name is the row's contents.
final
The panel's own name.
final
sidebarClose String
The button that shuts it.
final
sidebarOpen String
The button that opens it.
final
sidebarResize String
The handle that sizes it.
final
skip String
Leaves a sequence before the end of it.
final
skipToContent String
The first link on a screen, which jumps past the furniture.
final
sortedAscending String
What a sorted column heading says it is.
final
sortedDescending String
The other direction. See sortedAscending.
final
spoilerWarning String
What covers a spoiler until it is revealed.
final
start String
Which end of a range the calendar is currently asking for.
final
thisMonth String
The same shortcut on a picker that only asks for a month or a year.
final
thisYear String
See thisMonth.
final
today String
The footer's shortcut to today.
final
transferAvailable String
The two columns of a transfer.
final
transferMoved String Function(int count, String list)
What a transfer announces once rows have moved, given how many and the name of the list they went to.
final
transferSelected String
See transferAvailable.
final
transferToAvailable String
See transferToSelected.
final
transferToSelected String
And the buttons between them.
final
typing String
What a chat bubble says while somebody is still writing.
final

Methods

copyWith({String? close, String? cancel, String? confirm, String? acknowledge, String? search, String? selectAll, String? selectRow, String? sortedAscending, String? sortedDescending, String? remove, String? dismiss, String? open, String? previous, String? next, String? reveal, String? hide, String? increase, String? decrease, String? preview, String? empty, String? optional, String? breadcrumb, String? breadcrumbExpand, String? carousel, String? carouselPrevious, String? carouselNext, String? commandPalette, String? commandPalettePlaceholder, String? gallery, String? chart, String? minimize, String? maximize, String? restore, String? resizeWindow, String? overlay, String? pagination, String? paginationPrevious, String? paginationNext, String? paginationFirst, String? paginationLast, String? rating, String? sidebar, String? sidebarOpen, String? sidebarClose, String? sidebarResize, String? skipToContent, String? backToTop, String? onThisPage, String? typing, String? messageSending, String? messageSent, String? messageDelivered, String? messageRead, String? messageFailed, String? spoilerWarning, String? filePickerTitle, String? newTab, String? transferAvailable, String? transferSelected, String? transferToSelected, String? transferToAvailable, String? copy, String? copied, String? copyFailed, String? raw, String? code, String? previousMonth, String? nextMonth, String? previousYear, String? nextYear, String? previousYears, String? nextYears, String? chooseMonth, String? chooseYear, String? today, String? thisMonth, String? thisYear, String? now, String? clear, String? done, String? skip, String? hour, String? minute, String? second, String? meridiem, String? start, String? end, String paginationPage(int page)?, String ratingValue(num value, int count)?, String? ratingNone, String carouselSlide(int index, int count)?, String galleryItem(int index, int count)?, String removeItem(String name)?, String addCustom(String name)?, String howToStep(int index, int count)?, String transferMoved(int count, String list)?}) PlassLabels
This set with a word or two replaced.
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
Equal when the words are, rather than when the object is the same one.
override

Constants

english → const PlassLabels
English, and the default.