pub struct MaterialGap {
pub key: KeyRef,
pub size: f64,
}Expand description
A class that represents a gap within MergeableMaterial.
All MaterialGap objects need a key.
Fields§
§key: KeyRefThe key for this item of the list.
size: f64The main axis extent of this gap.
Implementations§
Source§impl MaterialGap
impl MaterialGap
Sourcepub fn new(key: impl Into<KeyRef>) -> MaterialGap
pub fn new(key: impl Into<KeyRef>) -> MaterialGap
Creates a Material gap with a given size; Dart’s optional named arguments are the setters.
Sourcepub fn size(self, size: f64) -> MaterialGap
pub fn size(self, size: f64) -> MaterialGap
Dart MaterialGap(size:).
Trait Implementations§
Source§impl Clone for MaterialGap
impl Clone for MaterialGap
Source§impl Debug for MaterialGap
impl Debug for MaterialGap
Source§impl From<MaterialGap> for MergeableMaterialItem
impl From<MaterialGap> for MergeableMaterialItem
Source§fn from(gap: MaterialGap) -> MergeableMaterialItem
fn from(gap: MaterialGap) -> MergeableMaterialItem
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MaterialGap
impl !Send for MaterialGap
impl !Sync for MaterialGap
impl !UnwindSafe for MaterialGap
impl Forget for MaterialGap
impl Freeze for MaterialGap
impl Move for MaterialGap
impl Unpin for MaterialGap
impl UnsafeUnpin for MaterialGap
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