pub struct InputBorderRef(/* private fields */);Expand description
An InputBorder held by value: what a Dart field or parameter typed InputBorder
becomes; ShapeBorderRef’s sharing and equality, for the narrower type.
Implementations§
Source§impl InputBorderRef
impl InputBorderRef
Sourcepub fn new(border: impl InputBorder) -> InputBorderRef
pub fn new(border: impl InputBorder) -> InputBorderRef
Erases an InputBorder.
Sourcepub fn none() -> InputBorderRef
pub fn none() -> InputBorderRef
No input border.
Use this value with InputDecoration.border to specify that no border
should be drawn. The InputDecoration.collapsed constructor sets
its border to this value.
Trait Implementations§
Source§impl Clone for InputBorderRef
impl Clone for InputBorderRef
Source§impl Debug for InputBorderRef
impl Debug for InputBorderRef
Source§impl Deref for InputBorderRef
impl Deref for InputBorderRef
Source§type Target = dyn InputBorder
type Target = dyn InputBorder
The resulting type after dereferencing.
Source§fn deref(&self) -> &dyn InputBorder
fn deref(&self) -> &dyn InputBorder
Dereferences the value.
Source§impl From<InputBorderRef> for ShapeBorderRef
Dart’s InputBorder extends ShapeBorder: an input border is used wherever a shape is.
impl From<InputBorderRef> for ShapeBorderRef
Dart’s InputBorder extends ShapeBorder: an input border is used wherever a shape is.
Source§fn from(border: InputBorderRef) -> ShapeBorderRef
fn from(border: InputBorderRef) -> ShapeBorderRef
Converts to this type from the input type.
Source§impl<T: InputBorder> From<T> for InputBorderRef
impl<T: InputBorder> From<T> for InputBorderRef
Source§fn from(border: T) -> InputBorderRef
fn from(border: T) -> InputBorderRef
Converts to this type from the input type.
Source§impl MaybeWidgetStateProperty<InputBorderRef> for InputBorderRef
Dart’s T? is InputBorder?: a WidgetStateInputBorder resolves to a border, which
resolve_as wraps in Some for an Option<InputBorderRef>.
impl MaybeWidgetStateProperty<InputBorderRef> for InputBorderRef
Dart’s T? is InputBorder?: a WidgetStateInputBorder resolves to a border, which
resolve_as wraps in Some for an Option<InputBorderRef>.
Source§fn as_widget_state_property(
&self,
) -> Option<&dyn WidgetStateProperty<InputBorderRef>>
fn as_widget_state_property( &self, ) -> Option<&dyn WidgetStateProperty<InputBorderRef>>
The property this value is, if it is one.
Source§fn from_resolved(value: InputBorderRef) -> InputBorderRef
fn from_resolved(value: InputBorderRef) -> InputBorderRef
A resolved value as this type (Dart’s
T is both).Source§impl PartialEq for InputBorderRef
impl PartialEq for InputBorderRef
Source§impl WidgetStateProperty<InputBorderRef> for MaterialStateOutlineInputBorder
Returns a InputBorder that’s to be used when a Material component is in the
specified state.
impl WidgetStateProperty<InputBorderRef> for MaterialStateOutlineInputBorder
Returns a InputBorder that’s to be used when a Material component is in the
specified state.
Source§fn resolve(&self, states: &WidgetStates) -> InputBorderRef
fn resolve(&self, states: &WidgetStates) -> InputBorderRef
Source§fn eq_property(&self, other: &dyn WidgetStateProperty<InputBorderRef>) -> bool
fn eq_property(&self, other: &dyn WidgetStateProperty<InputBorderRef>) -> bool
Dart’s
==. Identity unless a class overrides it, as WidgetStatePropertyAll and
WidgetStateMapper do.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
WidgetStateProperty.debugFillProperties, from Diagnosticable: a property
adds its own fields.Source§fn as_mapper(&self) -> Option<&WidgetStateMapper<T>>
fn as_mapper(&self) -> Option<&WidgetStateMapper<T>>
Dart’s
other is WidgetStateMapper<T>: the mapper this property is, if it is one,
as the private mapper subclasses of WidgetStateColor and the rest are.Source§impl WidgetStateProperty<InputBorderRef> for MaterialStateUnderlineInputBorder
Returns a InputBorder that’s to be used when a Material component is in the
specified state.
impl WidgetStateProperty<InputBorderRef> for MaterialStateUnderlineInputBorder
Returns a InputBorder that’s to be used when a Material component is in the
specified state.
Source§fn resolve(&self, states: &WidgetStates) -> InputBorderRef
fn resolve(&self, states: &WidgetStates) -> InputBorderRef
Source§fn eq_property(&self, other: &dyn WidgetStateProperty<InputBorderRef>) -> bool
fn eq_property(&self, other: &dyn WidgetStateProperty<InputBorderRef>) -> bool
Dart’s
==. Identity unless a class overrides it, as WidgetStatePropertyAll and
WidgetStateMapper do.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
WidgetStateProperty.debugFillProperties, from Diagnosticable: a property
adds its own fields.Source§fn as_mapper(&self) -> Option<&WidgetStateMapper<T>>
fn as_mapper(&self) -> Option<&WidgetStateMapper<T>>
Dart’s
other is WidgetStateMapper<T>: the mapper this property is, if it is one,
as the private mapper subclasses of WidgetStateColor and the rest are.Source§impl WidgetStateProperty<InputBorderRef> for WidgetStateInputBorder
impl WidgetStateProperty<InputBorderRef> for WidgetStateInputBorder
Source§fn resolve(&self, states: &WidgetStates) -> InputBorderRef
fn resolve(&self, states: &WidgetStates) -> InputBorderRef
Source§fn as_mapper(&self) -> Option<&WidgetStateMapper<InputBorderRef>>
fn as_mapper(&self) -> Option<&WidgetStateMapper<InputBorderRef>>
Dart’s
other is WidgetStateMapper<T>: the mapper this property is, if it is one,
as the private mapper subclasses of WidgetStateColor and the rest are.Source§fn eq_property(&self, other: &dyn WidgetStateProperty<InputBorderRef>) -> bool
fn eq_property(&self, other: &dyn WidgetStateProperty<InputBorderRef>) -> bool
Dart’s
==. Identity unless a class overrides it, as WidgetStatePropertyAll and
WidgetStateMapper do.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
WidgetStateProperty.debugFillProperties, from Diagnosticable: a property
adds its own fields.Auto Trait Implementations§
impl !RefUnwindSafe for InputBorderRef
impl !Send for InputBorderRef
impl !Sync for InputBorderRef
impl !UnwindSafe for InputBorderRef
impl Forget for InputBorderRef
impl Freeze for InputBorderRefwhere
*const RcInner<dyn InputBorder> is !null: Freeze,
PhantomData<RcInner<dyn InputBorder>>: Freeze,
impl Move for InputBorderRef
impl Unpin for InputBorderRef
impl UnsafeUnpin for InputBorderRefwhere
*const RcInner<dyn InputBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn InputBorder>>: 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
Mutably borrows from an owned value. Read more