pub struct ToolbarOptions {
pub copy: bool,
pub cut: bool,
pub paste: bool,
pub select_all: bool,
}Expand description
Toolbar configuration for EditableText.
Toolbar is a context menu that will show up when user right click or long
press the EditableText. It includes several options: cut, copy, paste,
and select all.
EditableText and its derived widgets have their own default ToolbarOptions.
Create a custom ToolbarOptions if you want explicit control over the toolbar
option.
Fields§
§copy: boolWhether to show copy option in toolbar.
cut: boolWhether to show cut option in toolbar.
paste: boolWhether to show paste option in toolbar.
select_all: boolWhether to show select all option in toolbar.
Implementations§
Source§impl ToolbarOptions
impl ToolbarOptions
Sourcepub const EMPTY: ToolbarOptions
pub const EMPTY: ToolbarOptions
An instance of ToolbarOptions with no options enabled.
Sourcepub const fn new() -> ToolbarOptions
pub const fn new() -> ToolbarOptions
Create a toolbar configuration with given options.
All options default to false if they are not explicitly set.
Sourcepub const fn copy(self, copy: bool) -> ToolbarOptions
pub const fn copy(self, copy: bool) -> ToolbarOptions
Dart ToolbarOptions(copy:).
Sourcepub const fn cut(self, cut: bool) -> ToolbarOptions
pub const fn cut(self, cut: bool) -> ToolbarOptions
Dart ToolbarOptions(cut:).
Sourcepub const fn paste(self, paste: bool) -> ToolbarOptions
pub const fn paste(self, paste: bool) -> ToolbarOptions
Dart ToolbarOptions(paste:).
Sourcepub const fn select_all(self, select_all: bool) -> ToolbarOptions
pub const fn select_all(self, select_all: bool) -> ToolbarOptions
Dart ToolbarOptions(selectAll:).
Trait Implementations§
Source§impl Clone for ToolbarOptions
impl Clone for ToolbarOptions
impl Copy for ToolbarOptions
Source§impl Debug for ToolbarOptions
impl Debug for ToolbarOptions
Source§impl Default for ToolbarOptions
impl Default for ToolbarOptions
Source§fn default() -> ToolbarOptions
fn default() -> ToolbarOptions
impl Eq for ToolbarOptions
Source§impl Hash for ToolbarOptions
impl Hash for ToolbarOptions
Source§impl PartialEq for ToolbarOptions
impl PartialEq for ToolbarOptions
impl StructuralPartialEq for ToolbarOptions
Auto Trait Implementations§
impl Forget for ToolbarOptions
impl Freeze for ToolbarOptions
impl Move for ToolbarOptions
impl RefUnwindSafe for ToolbarOptions
impl Send for ToolbarOptions
impl Sync for ToolbarOptions
impl Unpin for ToolbarOptions
impl UnsafeUnpin for ToolbarOptions
impl UnwindSafe for ToolbarOptions
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.