pub struct EditableTextTapOutsideIntent {
pub focus_node: FocusNodeRef,
pub pointer_down_event: PointerDownEvent,
}Expand description
An Intent that represents a tap outside the field.
Invoked when the user taps outside the focused EditableText if
EditableText.onTapOutside is None.
Override this Intent to modify the default behavior, which is to unfocus
on a touch event on web and do nothing on other platforms.
See also:
AnyAction::overridablefor an example on how to make anActionoverridable.
Fields§
§focus_node: FocusNodeRefThe FocusNode that this Intent’s action should be performed on.
pointer_down_event: PointerDownEventThe PointerDownEvent that initiated this Intent.
Implementations§
Source§impl EditableTextTapOutsideIntent
impl EditableTextTapOutsideIntent
Sourcepub fn new(
focus_node: FocusNodeRef,
pointer_down_event: PointerDownEvent,
) -> EditableTextTapOutsideIntent
pub fn new( focus_node: FocusNodeRef, pointer_down_event: PointerDownEvent, ) -> EditableTextTapOutsideIntent
Creates an EditableTextTapOutsideIntent.
Trait Implementations§
Source§impl Clone for EditableTextTapOutsideIntent
impl Clone for EditableTextTapOutsideIntent
Source§impl Debug for EditableTextTapOutsideIntent
impl Debug for EditableTextTapOutsideIntent
Source§impl Intent for EditableTextTapOutsideIntent
impl Intent for EditableTextTapOutsideIntent
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.Auto Trait Implementations§
impl !RefUnwindSafe for EditableTextTapOutsideIntent
impl !Send for EditableTextTapOutsideIntent
impl !Sync for EditableTextTapOutsideIntent
impl !UnwindSafe for EditableTextTapOutsideIntent
impl Forget for EditableTextTapOutsideIntent
impl Freeze for EditableTextTapOutsideIntentwhere
NonZero<u32>: Freeze,
&'static FocusNodeVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const PointerDownEvent is !null: Freeze,
PhantomData<PointerDownEvent>: Freeze,
impl Move for EditableTextTapOutsideIntent
impl Unpin for EditableTextTapOutsideIntent
impl UnsafeUnpin for EditableTextTapOutsideIntentwhere
NonZeroU32Inner: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const PointerDownEvent is !null: UnsafeUnpin,
PhantomData<PointerDownEvent>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
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