pub struct AnyFormFieldState<T: 'static> { /* private fields */ }Expand description
Erased FormFieldStateLeaf with value type T: what a field or parameter Dart types as
FormFieldState<T> becomes, such as what a FormFieldBuilder is handed.
Equality is Dart’s == on an object reference.
Implementations§
Source§impl<T: 'static> AnyFormFieldState<T>
impl<T: 'static> AnyFormFieldState<T>
Sourcepub fn as_dynamic(self) -> DynamicFormFieldState
pub fn as_dynamic(self) -> DynamicFormFieldState
This field as a FormFieldState<dynamic>.
Sourcepub fn downcast<S: 'static>(self, app: &App) -> Option<Handle<S>>
pub fn downcast<S: 'static>(self, app: &App) -> Option<Handle<S>>
The leaf state behind this handle, if it is an S: Dart’s field as S.
Sourcepub fn did_change(self, app: &mut App, value: Option<T>)
pub fn did_change(self, app: &mut App, value: Option<T>)
Sourcepub fn context(self, app: &App) -> BuildContext
pub fn context(self, app: &App) -> BuildContext
See State::context.
Sourcepub fn mounted(self, app: &App) -> bool
pub fn mounted(self, app: &App) -> bool
See State::mounted.
Sourcepub fn error_text(self, app: &App) -> Option<String>
pub fn error_text(self, app: &App) -> Option<String>
Sourcepub fn has_interacted_by_user(self, app: &App) -> bool
pub fn has_interacted_by_user(self, app: &App) -> bool
Sourcepub fn clear_error(self, app: &mut App)
pub fn clear_error(self, app: &mut App)
Trait Implementations§
Source§impl<T: 'static> Clone for AnyFormFieldState<T>
impl<T: 'static> Clone for AnyFormFieldState<T>
Source§fn clone(&self) -> AnyFormFieldState<T>
fn clone(&self) -> AnyFormFieldState<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: 'static> Copy for AnyFormFieldState<T>
Source§impl<T: 'static> Debug for AnyFormFieldState<T>
impl<T: 'static> Debug for AnyFormFieldState<T>
impl<T: 'static> Eq for AnyFormFieldState<T>
Auto Trait Implementations§
impl<T> Forget for AnyFormFieldState<T>
impl<T> Freeze for AnyFormFieldState<T>
impl<T> Move for AnyFormFieldState<T>
impl<T> RefUnwindSafe for AnyFormFieldState<T>
impl<T> Send for AnyFormFieldState<T>
impl<T> Sync for AnyFormFieldState<T>
impl<T> Unpin for AnyFormFieldState<T>
impl<T> UnsafeUnpin for AnyFormFieldState<T>where
NonZeroU32Inner: UnsafeUnpin,
&'static FormFieldStateVTable<T>: UnsafeUnpin,
impl<T> UnwindSafe for AnyFormFieldState<T>
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.