Skip to main content

DefaultWidgetsLocalizations

Struct DefaultWidgetsLocalizations 

Source
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 includes DefaultWidgetsLocalizations::delegate by default.

Implementations§

Source§

impl DefaultWidgetsLocalizations

Source

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.

Source

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.

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DefaultWidgetsLocalizations

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl WidgetsLocalizations for DefaultWidgetsLocalizations

Source§

fn text_direction(&self) -> TextDirection

The reading direction for text in this locale.
Source§

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

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

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

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

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

The semantics label used for SliverReorderableList to reorder an item in the list one space right in the list.
Source§

fn copy_button_label(&self) -> String

The label for the copy button on the text selection toolbar.
Source§

fn cut_button_label(&self) -> String

The label for the cut button on the text selection toolbar.
Source§

fn paste_button_label(&self) -> String

The label for the paste button on the text selection toolbar.
Source§

fn select_all_button_label(&self) -> String

The label for the select all button on the text selection toolbar.
Source§

fn look_up_button_label(&self) -> String

The label for the look up button on the text selection toolbar.
Source§

fn search_web_button_label(&self) -> String

The label for the search web button on the text selection toolbar.
Source§

fn share_button_label(&self) -> String

The label for the share button on the text selection toolbar.
Source§

fn radio_button_unselected_label(&self) -> String

The semantics label used for a RadioGroup widget when the radio button is unselected.
Source§

fn search_results_found(&self) -> String

Label for “search results found” announcement.
Source§

fn no_results_found(&self) -> String

Label for “no results found” announcement.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,