pub struct DefaultWidgetsLocalizations;Expand description
US English localizations for the widgets library.
See also:
GlobalWidgetsLocalizations, which provides widgets localizations for many languages.WidgetsApp.localizationsDelegates, which automatically includesDefaultWidgetsLocalizations::delegateby default.
Implementations§
Source§impl DefaultWidgetsLocalizations
impl DefaultWidgetsLocalizations
Sourcepub const fn new() -> DefaultWidgetsLocalizations
pub const fn new() -> DefaultWidgetsLocalizations
Construct an object that defines the localized values for the widgets library for US English (only).
delegate is the delegate.
Sourcepub fn load(_locale: &Locale) -> CompleterFuture<Rc<dyn WidgetsLocalizations>> ⓘ
pub fn load(_locale: &Locale) -> CompleterFuture<Rc<dyn WidgetsLocalizations>> ⓘ
Creates an object that provides US English resource values for the lowest levels of the widgets library.
The locale parameter is ignored.
This method is typically used to create a LocalizationsDelegate.
The WidgetsApp does so by default.
Sourcepub fn delegate() -> LocalizationsDelegateRef
pub fn delegate() -> LocalizationsDelegateRef
A LocalizationsDelegate that uses DefaultWidgetsLocalizations::load
to create an instance of this class.
WidgetsApp automatically adds this value to WidgetsApp.localizationsDelegates.
Trait Implementations§
Source§impl Debug for DefaultWidgetsLocalizations
impl Debug for DefaultWidgetsLocalizations
Source§impl WidgetsLocalizations for DefaultWidgetsLocalizations
impl WidgetsLocalizations for DefaultWidgetsLocalizations
Source§fn text_direction(&self) -> TextDirection
fn text_direction(&self) -> TextDirection
The reading direction for text in this locale.
Source§fn reorder_item_to_start(&self) -> String
fn reorder_item_to_start(&self) -> String
The semantics label used for
SliverReorderableList to reorder an item in the
list to the start of the list.Source§fn reorder_item_to_end(&self) -> String
fn reorder_item_to_end(&self) -> String
The semantics label used for
SliverReorderableList to reorder an item in the
list to the end of the list.Source§fn reorder_item_up(&self) -> String
fn reorder_item_up(&self) -> String
The semantics label used for
SliverReorderableList to reorder an item in the
list one space up the list.Source§fn reorder_item_down(&self) -> String
fn reorder_item_down(&self) -> String
The semantics label used for
SliverReorderableList to reorder an item in the
list one space down the list.Source§fn reorder_item_left(&self) -> String
fn reorder_item_left(&self) -> String
The semantics label used for
SliverReorderableList to reorder an item in the
list one space left in the list.Source§fn reorder_item_right(&self) -> String
fn reorder_item_right(&self) -> String
The semantics label used for
SliverReorderableList to reorder an item in the
list one space right in the list.The label for the copy button on the text selection toolbar.
The label for the cut button on the text selection toolbar.
The label for the paste button on the text selection toolbar.
The label for the select all button on the text selection toolbar.
The label for the look up button on the text selection toolbar.
The label for the search web button on the text selection toolbar.
The label for the share button on the text selection toolbar.
The semantics label used for a
RadioGroup widget when the radio button is
unselected.Source§fn search_results_found(&self) -> String
fn search_results_found(&self) -> String
Label for “search results found” announcement.
Source§fn no_results_found(&self) -> String
fn no_results_found(&self) -> String
Label for “no results found” announcement.
Auto Trait Implementations§
impl Forget for DefaultWidgetsLocalizations
impl Freeze for DefaultWidgetsLocalizations
impl Move for DefaultWidgetsLocalizations
impl RefUnwindSafe for DefaultWidgetsLocalizations
impl Send for DefaultWidgetsLocalizations
impl Sync for DefaultWidgetsLocalizations
impl Unpin for DefaultWidgetsLocalizations
impl UnsafeUnpin for DefaultWidgetsLocalizations
impl UnwindSafe for DefaultWidgetsLocalizations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more