pub struct EditableText {Show 76 fields
pub key: Option<KeyRef>,
pub controller: TextEditingControllerRef,
pub focus_node: FocusNodeRef,
pub read_only: bool,
pub obscuring_character: String,
pub obscure_text: bool,
pub autocorrect: Option<bool>,
pub smart_dashes_type: Option<SmartDashesType>,
pub smart_quotes_type: Option<SmartQuotesType>,
pub enable_suggestions: bool,
pub style: TextStyle,
pub cursor_color: Color,
pub background_cursor_color: Color,
pub text_align: TextAlign,
pub text_direction: Option<TextDirection>,
pub locale: Option<Locale>,
pub text_scale_factor: Option<f64>,
pub text_scaler: Option<TextScaler>,
pub max_lines: Option<i32>,
pub min_lines: Option<i32>,
pub expands: bool,
pub force_line: bool,
pub text_height_behavior: Option<TextHeightBehavior>,
pub text_width_basis: TextWidthBasis,
pub autofocus: bool,
pub show_cursor: Option<bool>,
pub show_selection_handles: bool,
pub selection_color: Option<Color>,
pub selection_controls: Option<Rc<dyn TextSelectionControls>>,
pub keyboard_type: Option<TextInputType>,
pub text_input_action: Option<TextInputAction>,
pub text_capitalization: TextCapitalization,
pub on_changed: Option<Rc<dyn Fn(&mut App, String)>>,
pub on_editing_complete: Option<Rc<dyn Fn(&mut App)>>,
pub on_submitted: Option<Rc<dyn Fn(&mut App, String)>>,
pub on_app_private_command: Option<AppPrivateCommandCallback>,
pub on_selection_changed: Option<SelectionChangedCallback>,
pub on_selection_handle_tapped: Option<Listener>,
pub group_id: TypeId,
pub on_tap_outside: Option<Rc<dyn Fn(&mut App, PointerDownEvent)>>,
pub on_tap_up_outside: Option<Rc<dyn Fn(&mut App, PointerUpEvent)>>,
pub input_formatters: Option<Vec<TextInputFormatterRef>>,
pub mouse_cursor: Option<MouseCursorRef>,
pub renderer_ignores_pointer: bool,
pub cursor_width: f64,
pub cursor_height: Option<f64>,
pub cursor_radius: Option<Radius>,
pub cursor_opacity_animates: bool,
pub cursor_offset: Option<Offset>,
pub paint_cursor_above_text: bool,
pub selection_height_style: BoxHeightStyle,
pub selection_width_style: BoxWidthStyle,
pub scroll_padding: EdgeInsets,
pub keyboard_appearance: Brightness,
pub drag_start_behavior: DragStartBehavior,
pub enable_interactive_selection: Option<bool>,
pub select_all_on_focus: Option<bool>,
pub scroll_controller: Option<ScrollControllerRef>,
pub scroll_physics: Option<ScrollPhysicsRef>,
pub autocorrection_text_rect_color: Option<Color>,
pub toolbar_options: Option<ToolbarOptions>,
pub autofill_hints: Vec<String>,
pub autofill_client: Option<AnyAutofillClient>,
pub clip_behavior: Clip,
pub restoration_id: Option<String>,
pub scroll_behavior: Option<ScrollBehaviorRef>,
pub scribble_enabled: bool,
pub stylus_handwriting_enabled: bool,
pub enable_ime_personalized_learning: bool,
pub content_insertion_configuration: Option<ContentInsertionConfiguration>,
pub context_menu_builder: Option<EditableTextContextMenuBuilder>,
pub spell_check_configuration: Option<SpellCheckConfiguration>,
pub magnifier_configuration: TextMagnifierConfiguration,
pub undo_controller: Option<Ref<UndoHistoryController>>,
pub hint_locales: Option<Vec<Locale>>,
pub enable_inline_prediction: Option<bool>,
/* private fields */
}Expand description
A basic text input field.
This is the raw editing widget: it draws and edits text but takes no pointer gestures
itself, so taps, drags and the selection menu come from a field’s gesture detector around
it. Use a text field such as Material’s TextField or WinUI’s TextBox for the gestures.
Fields§
§key: Option<KeyRef>§controller: TextEditingControllerRefControls the text being edited.
focus_node: FocusNodeRefControls whether this widget has keyboard focus.
read_only: bool§obscuring_character: String§obscure_text: bool§autocorrect: Option<bool>§smart_dashes_type: Option<SmartDashesType>§smart_quotes_type: Option<SmartQuotesType>§enable_suggestions: bool§style: TextStyle§cursor_color: Color§background_cursor_color: Color§text_align: TextAlign§text_direction: Option<TextDirection>§locale: Option<Locale>§text_scale_factor: Option<f64>§text_scaler: Option<TextScaler>§max_lines: Option<i32>§min_lines: Option<i32>§expands: bool§force_line: bool§text_height_behavior: Option<TextHeightBehavior>§text_width_basis: TextWidthBasis§autofocus: bool§show_cursor: Option<bool>§show_selection_handles: bool§selection_color: Option<Color>§selection_controls: Option<Rc<dyn TextSelectionControls>>§keyboard_type: Option<TextInputType>§text_input_action: Option<TextInputAction>§text_capitalization: TextCapitalization§on_changed: Option<Rc<dyn Fn(&mut App, String)>>§on_editing_complete: Option<Rc<dyn Fn(&mut App)>>§on_submitted: Option<Rc<dyn Fn(&mut App, String)>>§on_app_private_command: Option<AppPrivateCommandCallback>§on_selection_changed: Option<SelectionChangedCallback>§on_selection_handle_tapped: Option<Listener>§group_id: TypeId§on_tap_outside: Option<Rc<dyn Fn(&mut App, PointerDownEvent)>>§on_tap_up_outside: Option<Rc<dyn Fn(&mut App, PointerUpEvent)>>§input_formatters: Option<Vec<TextInputFormatterRef>>§mouse_cursor: Option<MouseCursorRef>§renderer_ignores_pointer: bool§cursor_width: f64§cursor_height: Option<f64>§cursor_radius: Option<Radius>§cursor_opacity_animates: bool§cursor_offset: Option<Offset>§paint_cursor_above_text: bool§selection_height_style: BoxHeightStyle§selection_width_style: BoxWidthStyle§scroll_padding: EdgeInsets§keyboard_appearance: Brightness§drag_start_behavior: DragStartBehavior§enable_interactive_selection: Option<bool>§select_all_on_focus: Option<bool>§scroll_controller: Option<ScrollControllerRef>§scroll_physics: Option<ScrollPhysicsRef>§autocorrection_text_rect_color: Option<Color>§toolbar_options: Option<ToolbarOptions>§autofill_hints: Vec<String>§autofill_client: Option<AnyAutofillClient>§clip_behavior: Clip§restoration_id: Option<String>§scroll_behavior: Option<ScrollBehaviorRef>§scribble_enabled: bool§stylus_handwriting_enabled: bool§enable_ime_personalized_learning: bool§content_insertion_configuration: Option<ContentInsertionConfiguration>§spell_check_configuration: Option<SpellCheckConfiguration>§magnifier_configuration: TextMagnifierConfiguration§undo_controller: Option<Ref<UndoHistoryController>>§hint_locales: Option<Vec<Locale>>§enable_inline_prediction: Option<bool>Implementations§
Source§impl EditableText
impl EditableText
Sourcepub const DEFAULT_STYLUS_HANDWRITING_ENABLED: bool = true
pub const DEFAULT_STYLUS_HANDWRITING_ENABLED: bool = true
The default value for stylus_handwriting_enabled.
Sourcepub fn default_selection_height_style() -> BoxHeightStyle
pub fn default_selection_height_style() -> BoxHeightStyle
The default value for selection_height_style.
Sourcepub fn default_selection_width_style() -> BoxWidthStyle
pub fn default_selection_width_style() -> BoxWidthStyle
The default value for selection_width_style.
Sourcepub fn debug_deterministic_cursor(app: &App) -> bool
pub fn debug_deterministic_cursor(app: &App) -> bool
Whether the blinking cursor should be drawn as always-on for tests: Dart’s static
EditableText.debugDeterministicCursor, kept on the App (see App::debug_flag).
Sourcepub fn set_debug_deterministic_cursor(app: &mut App, value: bool)
pub fn set_debug_deterministic_cursor(app: &mut App, value: bool)
Dart’s EditableText.debugDeterministicCursor setter, for this app.
Sourcepub fn new(
controller: TextEditingControllerRef,
focus_node: FocusNodeRef,
style: TextStyle,
cursor_color: Color,
background_cursor_color: Color,
) -> EditableText
pub fn new( controller: TextEditingControllerRef, focus_node: FocusNodeRef, style: TextStyle, cursor_color: Color, background_cursor_color: Color, ) -> EditableText
Creates a basic text input field.
Sourcepub fn effective_strut_style(&self) -> StrutStyle
pub fn effective_strut_style(&self) -> StrutStyle
Dart EditableText.strutStyle: the strut this editable lays its lines out with.
With no explicit strut, one is derived from style with
StrutStyle::force_strut_height set; an explicit one inherits its unset values from
the style.
Sourcepub fn obscuring_character(self, obscuring_character: impl Into<String>) -> Self
pub fn obscuring_character(self, obscuring_character: impl Into<String>) -> Self
Dart EditableText(obscuringCharacter:).
Sourcepub fn obscure_text(self, obscure_text: bool) -> Self
pub fn obscure_text(self, obscure_text: bool) -> Self
Dart EditableText(obscureText:).
Sourcepub fn autocorrect(self, autocorrect: bool) -> Self
pub fn autocorrect(self, autocorrect: bool) -> Self
Dart EditableText(autocorrect:).
Sourcepub fn smart_dashes_type(self, smart_dashes_type: SmartDashesType) -> Self
pub fn smart_dashes_type(self, smart_dashes_type: SmartDashesType) -> Self
Dart EditableText(smartDashesType:).
Sourcepub fn smart_quotes_type(self, smart_quotes_type: SmartQuotesType) -> Self
pub fn smart_quotes_type(self, smart_quotes_type: SmartQuotesType) -> Self
Dart EditableText(smartQuotesType:).
Sourcepub fn enable_suggestions(self, enable_suggestions: bool) -> Self
pub fn enable_suggestions(self, enable_suggestions: bool) -> Self
Dart EditableText(enableSuggestions:).
Sourcepub fn strut_style(self, strut_style: StrutStyle) -> Self
pub fn strut_style(self, strut_style: StrutStyle) -> Self
Dart EditableText(strutStyle:).
Sourcepub fn text_align(self, text_align: TextAlign) -> Self
pub fn text_align(self, text_align: TextAlign) -> Self
Dart EditableText(textAlign:).
Sourcepub fn text_direction(self, text_direction: TextDirection) -> Self
pub fn text_direction(self, text_direction: TextDirection) -> Self
Dart EditableText(textDirection:).
Sourcepub fn text_scale_factor(self, text_scale_factor: f64) -> Self
pub fn text_scale_factor(self, text_scale_factor: f64) -> Self
Dart EditableText(textScaleFactor:).
Sourcepub fn text_scaler(self, text_scaler: TextScaler) -> Self
pub fn text_scaler(self, text_scaler: TextScaler) -> Self
Dart EditableText(textScaler:).
Sourcepub fn force_line(self, force_line: bool) -> Self
pub fn force_line(self, force_line: bool) -> Self
Dart EditableText(forceLine:).
Sourcepub fn text_height_behavior(
self,
text_height_behavior: TextHeightBehavior,
) -> Self
pub fn text_height_behavior( self, text_height_behavior: TextHeightBehavior, ) -> Self
Dart EditableText(textHeightBehavior:).
Sourcepub fn text_width_basis(self, text_width_basis: TextWidthBasis) -> Self
pub fn text_width_basis(self, text_width_basis: TextWidthBasis) -> Self
Dart EditableText(textWidthBasis:).
Sourcepub fn show_cursor(self, show_cursor: bool) -> Self
pub fn show_cursor(self, show_cursor: bool) -> Self
Dart EditableText(showCursor:).
Sourcepub fn show_selection_handles(self, show_selection_handles: bool) -> Self
pub fn show_selection_handles(self, show_selection_handles: bool) -> Self
Dart EditableText(showSelectionHandles:).
Sourcepub fn selection_color(self, selection_color: Color) -> Self
pub fn selection_color(self, selection_color: Color) -> Self
Dart EditableText(selectionColor:).
Sourcepub fn selection_controls(
self,
selection_controls: Rc<dyn TextSelectionControls>,
) -> Self
pub fn selection_controls( self, selection_controls: Rc<dyn TextSelectionControls>, ) -> Self
Dart EditableText(selectionControls:).
Sourcepub fn keyboard_type(self, keyboard_type: TextInputType) -> Self
pub fn keyboard_type(self, keyboard_type: TextInputType) -> Self
Dart EditableText(keyboardType:).
Sourcepub fn text_input_action(self, text_input_action: TextInputAction) -> Self
pub fn text_input_action(self, text_input_action: TextInputAction) -> Self
Dart EditableText(textInputAction:).
Sourcepub fn text_capitalization(
self,
text_capitalization: TextCapitalization,
) -> Self
pub fn text_capitalization( self, text_capitalization: TextCapitalization, ) -> Self
Dart EditableText(textCapitalization:).
Sourcepub fn on_changed(self, on_changed: impl Fn(&mut App, String) + 'static) -> Self
pub fn on_changed(self, on_changed: impl Fn(&mut App, String) + 'static) -> Self
Dart EditableText(onChanged:).
Sourcepub fn on_editing_complete(
self,
on_editing_complete: impl Fn(&mut App) + 'static,
) -> Self
pub fn on_editing_complete( self, on_editing_complete: impl Fn(&mut App) + 'static, ) -> Self
Dart EditableText(onEditingComplete:).
Sourcepub fn on_submitted(
self,
on_submitted: impl Fn(&mut App, String) + 'static,
) -> Self
pub fn on_submitted( self, on_submitted: impl Fn(&mut App, String) + 'static, ) -> Self
Dart EditableText(onSubmitted:).
Sourcepub fn on_app_private_command(
self,
on_app_private_command: impl Fn(&mut App, &str) + 'static,
) -> Self
pub fn on_app_private_command( self, on_app_private_command: impl Fn(&mut App, &str) + 'static, ) -> Self
Dart EditableText(onAppPrivateCommand:).
Sourcepub fn on_selection_changed(
self,
on_selection_changed: impl Fn(&mut App, TextSelection, Option<SelectionChangedCause>) + 'static,
) -> Self
pub fn on_selection_changed( self, on_selection_changed: impl Fn(&mut App, TextSelection, Option<SelectionChangedCause>) + 'static, ) -> Self
Dart EditableText(onSelectionChanged:).
Sourcepub fn on_selection_handle_tapped(
self,
on_selection_handle_tapped: Listener,
) -> Self
pub fn on_selection_handle_tapped( self, on_selection_handle_tapped: Listener, ) -> Self
Dart EditableText(onSelectionHandleTapped:).
Sourcepub fn on_tap_outside(
self,
on_tap_outside: impl Fn(&mut App, PointerDownEvent) + 'static,
) -> Self
pub fn on_tap_outside( self, on_tap_outside: impl Fn(&mut App, PointerDownEvent) + 'static, ) -> Self
Dart EditableText(onTapOutside:).
Sourcepub fn on_tap_up_outside(
self,
on_tap_up_outside: impl Fn(&mut App, PointerUpEvent) + 'static,
) -> Self
pub fn on_tap_up_outside( self, on_tap_up_outside: impl Fn(&mut App, PointerUpEvent) + 'static, ) -> Self
Dart EditableText(onTapUpOutside:).
Sourcepub fn input_formatters(
self,
input_formatters: Vec<TextInputFormatterRef>,
) -> Self
pub fn input_formatters( self, input_formatters: Vec<TextInputFormatterRef>, ) -> Self
Dart EditableText(inputFormatters:).
Sourcepub fn mouse_cursor(self, mouse_cursor: MouseCursorRef) -> Self
pub fn mouse_cursor(self, mouse_cursor: MouseCursorRef) -> Self
Dart EditableText(mouseCursor:).
Sourcepub fn renderer_ignores_pointer(self, renderer_ignores_pointer: bool) -> Self
pub fn renderer_ignores_pointer(self, renderer_ignores_pointer: bool) -> Self
Dart EditableText(rendererIgnoresPointer:).
Sourcepub fn cursor_width(self, cursor_width: f64) -> Self
pub fn cursor_width(self, cursor_width: f64) -> Self
Dart EditableText(cursorWidth:).
Sourcepub fn cursor_height(self, cursor_height: f64) -> Self
pub fn cursor_height(self, cursor_height: f64) -> Self
Dart EditableText(cursorHeight:).
Sourcepub fn cursor_radius(self, cursor_radius: Radius) -> Self
pub fn cursor_radius(self, cursor_radius: Radius) -> Self
Dart EditableText(cursorRadius:).
Sourcepub fn cursor_opacity_animates(self, cursor_opacity_animates: bool) -> Self
pub fn cursor_opacity_animates(self, cursor_opacity_animates: bool) -> Self
Dart EditableText(cursorOpacityAnimates:).
Sourcepub fn cursor_offset(self, cursor_offset: Offset) -> Self
pub fn cursor_offset(self, cursor_offset: Offset) -> Self
Dart EditableText(cursorOffset:).
Sourcepub fn paint_cursor_above_text(self, paint_cursor_above_text: bool) -> Self
pub fn paint_cursor_above_text(self, paint_cursor_above_text: bool) -> Self
Dart EditableText(paintCursorAboveText:).
Sourcepub fn selection_height_style(
self,
selection_height_style: BoxHeightStyle,
) -> Self
pub fn selection_height_style( self, selection_height_style: BoxHeightStyle, ) -> Self
Dart EditableText(selectionHeightStyle:).
Sourcepub fn selection_width_style(self, selection_width_style: BoxWidthStyle) -> Self
pub fn selection_width_style(self, selection_width_style: BoxWidthStyle) -> Self
Dart EditableText(selectionWidthStyle:).
Sourcepub fn scroll_padding(self, scroll_padding: EdgeInsets) -> Self
pub fn scroll_padding(self, scroll_padding: EdgeInsets) -> Self
Dart EditableText(scrollPadding:).
Sourcepub fn keyboard_appearance(self, keyboard_appearance: Brightness) -> Self
pub fn keyboard_appearance(self, keyboard_appearance: Brightness) -> Self
Dart EditableText(keyboardAppearance:).
Sourcepub fn drag_start_behavior(self, drag_start_behavior: DragStartBehavior) -> Self
pub fn drag_start_behavior(self, drag_start_behavior: DragStartBehavior) -> Self
Dart EditableText(dragStartBehavior:).
Sourcepub fn enable_interactive_selection(
self,
enable_interactive_selection: bool,
) -> Self
pub fn enable_interactive_selection( self, enable_interactive_selection: bool, ) -> Self
Dart EditableText(enableInteractiveSelection:).
Sourcepub fn select_all_on_focus(self, select_all_on_focus: bool) -> Self
pub fn select_all_on_focus(self, select_all_on_focus: bool) -> Self
Dart EditableText(selectAllOnFocus:).
Sourcepub fn scroll_controller(self, scroll_controller: ScrollControllerRef) -> Self
pub fn scroll_controller(self, scroll_controller: ScrollControllerRef) -> Self
Dart EditableText(scrollController:).
Sourcepub fn scroll_physics(self, scroll_physics: ScrollPhysicsRef) -> Self
pub fn scroll_physics(self, scroll_physics: ScrollPhysicsRef) -> Self
Dart EditableText(scrollPhysics:).
Sourcepub fn autocorrection_text_rect_color(
self,
autocorrection_text_rect_color: Color,
) -> Self
pub fn autocorrection_text_rect_color( self, autocorrection_text_rect_color: Color, ) -> Self
Dart EditableText(autocorrectionTextRectColor:).
Sourcepub fn toolbar_options(self, toolbar_options: ToolbarOptions) -> Self
pub fn toolbar_options(self, toolbar_options: ToolbarOptions) -> Self
Dart EditableText(toolbarOptions:).
Sourcepub fn autofill_hints(self, autofill_hints: Vec<String>) -> Self
pub fn autofill_hints(self, autofill_hints: Vec<String>) -> Self
Dart EditableText(autofillHints:).
Sourcepub fn autofill_client(self, autofill_client: AnyAutofillClient) -> Self
pub fn autofill_client(self, autofill_client: AnyAutofillClient) -> Self
Dart EditableText(autofillClient:).
Sourcepub fn clip_behavior(self, clip_behavior: Clip) -> Self
pub fn clip_behavior(self, clip_behavior: Clip) -> Self
Dart EditableText(clipBehavior:).
Sourcepub fn restoration_id(self, restoration_id: impl Into<String>) -> Self
pub fn restoration_id(self, restoration_id: impl Into<String>) -> Self
Dart EditableText(restorationId:).
Sourcepub fn scroll_behavior(self, scroll_behavior: ScrollBehaviorRef) -> Self
pub fn scroll_behavior(self, scroll_behavior: ScrollBehaviorRef) -> Self
Dart EditableText(scrollBehavior:).
Sourcepub fn scribble_enabled(self, scribble_enabled: bool) -> Self
pub fn scribble_enabled(self, scribble_enabled: bool) -> Self
Dart EditableText(scribbleEnabled:).
Sourcepub fn stylus_handwriting_enabled(
self,
stylus_handwriting_enabled: bool,
) -> Self
pub fn stylus_handwriting_enabled( self, stylus_handwriting_enabled: bool, ) -> Self
Dart EditableText(stylusHandwritingEnabled:).
Sourcepub fn enable_ime_personalized_learning(
self,
enable_ime_personalized_learning: bool,
) -> Self
pub fn enable_ime_personalized_learning( self, enable_ime_personalized_learning: bool, ) -> Self
Dart EditableText(enableIMEPersonalizedLearning:).
Sourcepub fn content_insertion_configuration(
self,
content_insertion_configuration: ContentInsertionConfiguration,
) -> Self
pub fn content_insertion_configuration( self, content_insertion_configuration: ContentInsertionConfiguration, ) -> Self
Dart EditableText(contentInsertionConfiguration:).
Dart EditableText(contextMenuBuilder:).
Sourcepub fn spell_check_configuration(
self,
spell_check_configuration: SpellCheckConfiguration,
) -> Self
pub fn spell_check_configuration( self, spell_check_configuration: SpellCheckConfiguration, ) -> Self
Dart EditableText(spellCheckConfiguration:).
Sourcepub fn magnifier_configuration(
self,
magnifier_configuration: TextMagnifierConfiguration,
) -> Self
pub fn magnifier_configuration( self, magnifier_configuration: TextMagnifierConfiguration, ) -> Self
Dart EditableText(magnifierConfiguration:).
Sourcepub fn undo_controller(
self,
undo_controller: Ref<UndoHistoryController>,
) -> Self
pub fn undo_controller( self, undo_controller: Ref<UndoHistoryController>, ) -> Self
Dart EditableText(undoController:).
Sourcepub fn hint_locales(self, hint_locales: Vec<Locale>) -> Self
pub fn hint_locales(self, hint_locales: Vec<Locale>) -> Self
Dart EditableText(hintLocales:).
Sourcepub fn enable_inline_prediction(self, enable_inline_prediction: bool) -> Self
pub fn enable_inline_prediction(self, enable_inline_prediction: bool) -> Self
Dart EditableText(enableInlinePrediction:).
Returns the ContextMenuButtonItems representing the buttons in this
platform’s default selection menu by default.
Sourcepub fn effective_autocorrect(&self, app: &App) -> bool
pub fn effective_autocorrect(&self, app: &App) -> bool
Dart’s autocorrect field, as its constructor fills it.
Sourcepub fn effective_smart_dashes_type(&self) -> SmartDashesType
pub fn effective_smart_dashes_type(&self) -> SmartDashesType
Dart’s smartDashesType field, as its constructor fills it.
Sourcepub fn effective_smart_quotes_type(&self) -> SmartQuotesType
pub fn effective_smart_quotes_type(&self) -> SmartQuotesType
Dart’s smartQuotesType field, as its constructor fills it.
Sourcepub fn effective_enable_interactive_selection(&self) -> bool
pub fn effective_enable_interactive_selection(&self) -> bool
Dart’s enableInteractiveSelection field, as its constructor fills it.
Sourcepub fn effective_select_all_on_focus(&self, app: &App) -> bool
pub fn effective_select_all_on_focus(&self, app: &App) -> bool
Dart’s selectAllOnFocus field, as its constructor fills it.
Sourcepub fn effective_toolbar_options(&self) -> ToolbarOptions
pub fn effective_toolbar_options(&self) -> ToolbarOptions
Dart’s toolbarOptions field, as its constructor fills it.
Sourcepub fn effective_keyboard_type(&self, app: &App) -> TextInputType
pub fn effective_keyboard_type(&self, app: &App) -> TextInputType
Dart’s keyboardType field, as its constructor fills it.
Sourcepub fn effective_input_formatters(&self) -> Vec<TextInputFormatterRef>
pub fn effective_input_formatters(&self) -> Vec<TextInputFormatterRef>
Dart’s inputFormatters field, as its constructor fills it.
Sourcepub fn effective_show_cursor(&self) -> bool
pub fn effective_show_cursor(&self) -> bool
Dart’s showCursor field, as its constructor fills it.
Trait Implementations§
Source§impl Debug for EditableText
impl Debug for EditableText
Source§impl StatefulWidget for EditableText
impl StatefulWidget for EditableText
Source§type State = EditableTextState
type State = EditableTextState
Source§fn debug_fill_properties(
&self,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn create_state(&self) -> EditableTextState
fn create_state(&self) -> EditableTextState
Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for EditableText
impl !Send for EditableText
impl !Sync for EditableText
impl !UnwindSafe for EditableText
impl Forget for EditableText
impl Freeze for EditableTextwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
NonZero<u32>: Freeze,
&'static TextEditingControllerVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
&'static FocusNodeVTable: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
PhantomData<String>: Freeze,
*const RcInner<Paint> is !null: Freeze,
PhantomData<RcInner<Paint>>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
*const TextScaler is !null: Freeze,
PhantomData<TextScaler>: Freeze,
*const RcInner<dyn TextSelectionControls> is !null: Freeze,
PhantomData<RcInner<dyn TextSelectionControls>>: Freeze,
*const RcInner<dyn Fn(&mut App, String)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, String)>>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
*const RcInner<dyn Fn(&mut App, &str)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, &str)>>: Freeze,
*const RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)>>: Freeze,
*const (): Freeze,
*const RcInner<dyn Fn(&mut App, PointerDownEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerDownEvent)>>: Freeze,
*const RcInner<dyn Fn(&mut App, PointerUpEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerUpEvent)>>: Freeze,
PhantomData<TextInputFormatterRef>: Freeze,
*const RcInner<dyn MouseCursor> is !null: Freeze,
PhantomData<RcInner<dyn MouseCursor>>: Freeze,
&'static ScrollControllerVTable: Freeze,
*const RcInner<dyn ScrollPhysics> is !null: Freeze,
PhantomData<RcInner<dyn ScrollPhysics>>: Freeze,
&'static AutofillClientVTable: Freeze,
*const RcInner<dyn ScrollBehavior> is !null: Freeze,
PhantomData<RcInner<dyn ScrollBehavior>>: Freeze,
*const RcInner<dyn Fn(&mut App, KeyboardInsertedContent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, KeyboardInsertedContent)>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>>: Freeze,
*const RcInner<dyn SpellCheckService> is !null: Freeze,
PhantomData<RcInner<dyn SpellCheckService>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>>: Freeze,
PhantomData<fn() -> UndoHistoryController>: Freeze,
PhantomData<Locale>: Freeze,
impl Move for EditableText
impl Unpin for EditableTextwhere
Rc<dyn Key>: Unpin,
NonZero<u32>: Unpin,
&'static TextEditingControllerVTable: Unpin,
Rc<Keep>: Unpin,
&'static FocusNodeVTable: Unpin,
*const u8 is !null: Unpin,
&'static dyn ColorExtension: Unpin,
Rc<dyn ColorExtension>: Unpin,
Rc<Paint>: Unpin,
Box<TextScaler>: Unpin,
Rc<dyn TextSelectionControls>: Unpin,
Rc<dyn Fn(&mut App, String)>: Unpin,
Rc<dyn Fn(&mut App)>: Unpin,
Rc<dyn Fn(&mut App, &str)>: Unpin,
Rc<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)>: Unpin,
*const (): Unpin,
Rc<dyn Fn(&mut App, PointerDownEvent)>: Unpin,
Rc<dyn Fn(&mut App, PointerUpEvent)>: Unpin,
Rc<dyn TextInputFormatter>: Unpin,
Rc<dyn MouseCursor>: Unpin,
&'static ScrollControllerVTable: Unpin,
Rc<dyn ScrollPhysics>: Unpin,
&'static AutofillClientVTable: Unpin,
Rc<dyn ScrollBehavior>: Unpin,
Rc<dyn Fn(&mut App, KeyboardInsertedContent)>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>: Unpin,
Rc<dyn SpellCheckService>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>: Unpin,
impl UnsafeUnpin for EditableTextwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static TextEditingControllerVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const RcInner<Paint> is !null: UnsafeUnpin,
PhantomData<RcInner<Paint>>: UnsafeUnpin,
PhantomData<Shadow>: UnsafeUnpin,
PhantomData<FontFeature>: UnsafeUnpin,
PhantomData<FontVariation>: UnsafeUnpin,
*const TextScaler is !null: UnsafeUnpin,
PhantomData<TextScaler>: UnsafeUnpin,
*const RcInner<dyn TextSelectionControls> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn TextSelectionControls>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, String)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, String)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, &str)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, &str)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)>>: UnsafeUnpin,
*const (): UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerDownEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerDownEvent)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerUpEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerUpEvent)>>: UnsafeUnpin,
PhantomData<TextInputFormatterRef>: UnsafeUnpin,
*const RcInner<dyn MouseCursor> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn MouseCursor>>: UnsafeUnpin,
&'static ScrollControllerVTable: UnsafeUnpin,
*const RcInner<dyn ScrollPhysics> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollPhysics>>: UnsafeUnpin,
&'static AutofillClientVTable: UnsafeUnpin,
*const RcInner<dyn ScrollBehavior> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollBehavior>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, KeyboardInsertedContent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, KeyboardInsertedContent)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>>: UnsafeUnpin,
*const RcInner<dyn SpellCheckService> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn SpellCheckService>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>>: UnsafeUnpin,
PhantomData<fn() -> UndoHistoryController>: UnsafeUnpin,
PhantomData<Locale>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.