pub struct SliverGridCount { /* private fields */ }Expand description
Dart’s SliverGrid.count(..) arguments; into_widget builds the SliverGrid.
Implementations§
Source§impl SliverGridCount
impl SliverGridCount
Sourcepub fn key(self, key: KeyRef) -> SliverGridCount
pub fn key(self, key: KeyRef) -> SliverGridCount
Dart key:.
Sourcepub fn main_axis_spacing(self, value: f64) -> SliverGridCount
pub fn main_axis_spacing(self, value: f64) -> SliverGridCount
Dart mainAxisSpacing:.
Sourcepub fn cross_axis_spacing(self, value: f64) -> SliverGridCount
pub fn cross_axis_spacing(self, value: f64) -> SliverGridCount
Dart crossAxisSpacing:.
Sourcepub fn child_aspect_ratio(self, value: f64) -> SliverGridCount
pub fn child_aspect_ratio(self, value: f64) -> SliverGridCount
Dart childAspectRatio:.
Sourcepub fn children(
self,
children: impl IntoIterator<Item = WidgetRef>,
) -> SliverGridCount
pub fn children( self, children: impl IntoIterator<Item = WidgetRef>, ) -> SliverGridCount
Dart children:.
Sourcepub fn build(self) -> SliverGrid
pub fn build(self) -> SliverGrid
The SliverGrid this constructor describes.
Trait Implementations§
Source§impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridCount
impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridCount
Source§fn into_widget(self) -> WidgetRef
fn into_widget(self) -> WidgetRef
The widget as a tree node, made where this is called: its
creation_location.Auto Trait Implementations§
impl !RefUnwindSafe for SliverGridCount
impl !Send for SliverGridCount
impl !Sync for SliverGridCount
impl !UnwindSafe for SliverGridCount
impl Forget for SliverGridCount
impl Freeze for SliverGridCount
impl Move for SliverGridCount
impl Unpin for SliverGridCount
impl UnsafeUnpin for SliverGridCountwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Rc<dyn Widget>>: 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