Skip to main content

SliverGridExtent

Struct SliverGridExtent 

Source
pub struct SliverGridExtent { /* private fields */ }
Expand description

Dart’s SliverGrid.extent(..) arguments; into_widget builds the SliverGrid.

Implementations§

Source§

impl SliverGridExtent

Source

pub fn key(self, key: KeyRef) -> SliverGridExtent

Dart key:.

Source

pub fn main_axis_spacing(self, value: f64) -> SliverGridExtent

Dart mainAxisSpacing:.

Source

pub fn cross_axis_spacing(self, value: f64) -> SliverGridExtent

Dart crossAxisSpacing:.

Source

pub fn child_aspect_ratio(self, value: f64) -> SliverGridExtent

Dart childAspectRatio:.

Source

pub fn children( self, children: impl IntoIterator<Item = WidgetRef>, ) -> SliverGridExtent

Dart children:.

Source

pub fn build(self) -> SliverGrid

The SliverGrid this constructor describes.

Trait Implementations§

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridExtent

Source§

fn into_widget(self) -> WidgetRef

The widget as a tree node, made where this is called: its creation_location.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>