pub enum IOSSystemContextMenuItem {
Copy,
Cut,
Paste,
SelectAll,
LookUp {
title: Option<String>,
},
SearchWeb {
title: Option<String>,
},
Share {
title: Option<String>,
},
LiveText,
Custom {
title: String,
on_pressed: Listener,
},
}Expand description
Describes a context menu button that will be rendered in the iOS system context menu and not by Flutter itself.
Dart’s sealed IOSSystemContextMenuItem subclasses are the variants.
Variants§
Copy
The system’s built-in copy button.
Cut
The system’s built-in cut button.
Paste
The system’s built-in paste button.
SelectAll
The system’s built-in select-all button.
LookUp
The system’s built-in look-up button.
Fields
title: Option<String>Optional title; defaults to WidgetsLocalizations::look_up_button_label.
SearchWeb
The system’s built-in search-web button.
Fields
title: Option<String>Optional title; defaults to WidgetsLocalizations::search_web_button_label.
The system’s built-in share button.
LiveText
The system’s built-in Live Text button.
Custom
A developer-defined button.
Implementations§
Source§impl IOSSystemContextMenuItem
impl IOSSystemContextMenuItem
Sourcepub fn debug_fill_properties(
&self,
properties: &mut DiagnosticPropertiesBuilder,
)
pub fn debug_fill_properties( &self, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s IOSSystemContextMenuItem subclasses’ debugFillProperties.
Sourcepub fn get_data(
&self,
localizations: &dyn WidgetsLocalizations,
) -> IOSSystemContextMenuItemData
pub fn get_data( &self, localizations: &dyn WidgetsLocalizations, ) -> IOSSystemContextMenuItemData
Returns the representation of this class used by the host.