pub struct EditableTextTapUpOutsideIntent {
pub focus_node: FocusNodeRef,
pub pointer_up_event: PointerUpEvent,
}Expand description
An Intent that represents a tap outside the field.
Invoked when the user taps up outside the focused EditableText if
EditableText.onTapUpOutside 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_up_event: PointerUpEventThe PointerUpEvent that initiated this Intent.
Implementations§
Source§impl EditableTextTapUpOutsideIntent
impl EditableTextTapUpOutsideIntent
Sourcepub fn new(
focus_node: FocusNodeRef,
pointer_up_event: PointerUpEvent,
) -> EditableTextTapUpOutsideIntent
pub fn new( focus_node: FocusNodeRef, pointer_up_event: PointerUpEvent, ) -> EditableTextTapUpOutsideIntent
Creates an EditableTextTapUpOutsideIntent.
Trait Implementations§
Source§impl Intent for EditableTextTapUpOutsideIntent
impl Intent for EditableTextTapUpOutsideIntent
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 EditableTextTapUpOutsideIntent
impl !Send for EditableTextTapUpOutsideIntent
impl !Sync for EditableTextTapUpOutsideIntent
impl !UnwindSafe for EditableTextTapUpOutsideIntent
impl Forget for EditableTextTapUpOutsideIntent
impl Freeze for EditableTextTapUpOutsideIntentwhere
NonZero<u32>: Freeze,
&'static FocusNodeVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const PointerUpEvent is !null: Freeze,
PhantomData<PointerUpEvent>: Freeze,
impl Move for EditableTextTapUpOutsideIntent
impl Unpin for EditableTextTapUpOutsideIntent
impl UnsafeUnpin for EditableTextTapUpOutsideIntentwhere
NonZeroU32Inner: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const PointerUpEvent is !null: UnsafeUnpin,
PhantomData<PointerUpEvent>: 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