pub struct DynamicFormFieldState { /* private fields */ }Expand description
Erased FormFieldStateLeaf whose value type is not known: what a field or parameter Dart
types as FormFieldState<dynamic> becomes, such as the fields a FormState holds.
Equality is Dart’s == on an object reference.
Implementations§
Source§impl DynamicFormFieldState
impl DynamicFormFieldState
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 typed<T: 'static>(self) -> Option<AnyFormFieldState<T>>
pub fn typed<T: 'static>(self) -> Option<AnyFormFieldState<T>>
This field as a FormFieldState<T>, if its value type is T: Dart’s
field is FormFieldState<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 Clone for DynamicFormFieldState
impl Clone for DynamicFormFieldState
impl Copy for DynamicFormFieldState
Source§impl Debug for DynamicFormFieldState
impl Debug for DynamicFormFieldState
impl Eq for DynamicFormFieldState
Source§impl Hash for DynamicFormFieldState
impl Hash for DynamicFormFieldState
Auto Trait Implementations§
impl Forget for DynamicFormFieldState
impl Freeze for DynamicFormFieldState
impl Move for DynamicFormFieldState
impl RefUnwindSafe for DynamicFormFieldState
impl Send for DynamicFormFieldState
impl Sync for DynamicFormFieldState
impl Unpin for DynamicFormFieldState
impl UnsafeUnpin for DynamicFormFieldStatewhere
NonZeroU32Inner: UnsafeUnpin,
&'static DynamicFormFieldStateVTable: UnsafeUnpin,
impl UnwindSafe for DynamicFormFieldState
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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.