pub struct RenderFlexData { /* private fields */ }Expand description
The fields of a RenderFlex.
A render object that inherits the flex layout holds this bag and implements
RenderFlexMixin.
Implementations§
Source§impl RenderFlexData
impl RenderFlexData
Sourcepub fn new() -> RenderFlexData
pub fn new() -> RenderFlexData
Creates the flex fields with their defaults.
The layout is horizontal and children are aligned to the start of the main axis and the center of the cross axis.
Source§impl RenderFlexData
impl RenderFlexData
Sourcepub fn direction(self, direction: Axis) -> RenderFlexData
pub fn direction(self, direction: Axis) -> RenderFlexData
Dart RenderFlex(direction:).
Sourcepub fn main_axis_alignment(
self,
main_axis_alignment: MainAxisAlignment,
) -> RenderFlexData
pub fn main_axis_alignment( self, main_axis_alignment: MainAxisAlignment, ) -> RenderFlexData
Dart RenderFlex(mainAxisAlignment:).
Sourcepub fn main_axis_size(self, main_axis_size: MainAxisSize) -> RenderFlexData
pub fn main_axis_size(self, main_axis_size: MainAxisSize) -> RenderFlexData
Dart RenderFlex(mainAxisSize:).
Sourcepub fn cross_axis_alignment(
self,
cross_axis_alignment: CrossAxisAlignment,
) -> RenderFlexData
pub fn cross_axis_alignment( self, cross_axis_alignment: CrossAxisAlignment, ) -> RenderFlexData
Dart RenderFlex(crossAxisAlignment:).
Sourcepub fn text_direction(
self,
text_direction: Option<TextDirection>,
) -> RenderFlexData
pub fn text_direction( self, text_direction: Option<TextDirection>, ) -> RenderFlexData
Dart RenderFlex(textDirection:).
Sourcepub fn vertical_direction(
self,
vertical_direction: VerticalDirection,
) -> RenderFlexData
pub fn vertical_direction( self, vertical_direction: VerticalDirection, ) -> RenderFlexData
Dart RenderFlex(verticalDirection:).
Sourcepub fn text_baseline(
self,
text_baseline: Option<TextBaseline>,
) -> RenderFlexData
pub fn text_baseline( self, text_baseline: Option<TextBaseline>, ) -> RenderFlexData
Dart RenderFlex(textBaseline:).
Sourcepub fn clip_behavior(self, clip_behavior: Clip) -> RenderFlexData
pub fn clip_behavior(self, clip_behavior: Clip) -> RenderFlexData
Dart RenderFlex(clipBehavior:).
Sourcepub fn spacing(self, spacing: f64) -> RenderFlexData
pub fn spacing(self, spacing: f64) -> RenderFlexData
Dart RenderFlex(spacing:).
Trait Implementations§
Source§impl Default for RenderFlexData
impl Default for RenderFlexData
Source§fn default() -> RenderFlexData
fn default() -> RenderFlexData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderFlexData
impl RefUnwindSafe for RenderFlexData
impl Send for RenderFlexData
impl Sync for RenderFlexData
impl Unpin for RenderFlexData
impl UnsafeUnpin for RenderFlexData
impl UnwindSafe for RenderFlexData
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