Wrap class Null safety

A widget that displays its children in multiple horizontal or vertical runs.

Inheritance
Mixed in types

Constructors

Wrap({Axis direction = Axis.horizontal, WrapAlignment alignment = WrapAlignment.start, double spacing = 0.0, WrapAlignment runAlignment = WrapAlignment.start, double runSpacing = 0.0, WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start, VerticalDirection verticalDirection = VerticalDirection.down, List<Widget> children = const <Widget>[]})
Creates a wrap layout.

Properties

alignment WrapAlignment
How the children within a run should be placed in the main axis.
final
box PdfRect?
The bounding box of this widget, calculated at layout time
read / write, inherited
canSpan bool
read-only, override
children List<Widget>
final, inherited
crossAxisAlignment WrapCrossAlignment
How the children within a run should be aligned relative to each other in the cross axis.
final
direction Axis
The direction to use as the main axis.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasMoreWidgets bool
read-only, override
runAlignment WrapAlignment
How the runs themselves should be placed in the cross axis.
final
runSpacing double
How much space to place between the runs themselves in the cross axis.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
spacing double
How much space to place between children in a run in the main axis.
final
textDirection bool
read-only
verticalDirection VerticalDirection
Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.
final

Methods

debugPaint(Context context) → void
@protected, inherited
layout(Context context, BoxConstraints constraints, {bool parentUsesSize = false}) → void
First widget pass to calculate the children layout and bounding box
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
paint(Context context) → void
Draw itself and its children, according to the calculated box.offset
override
restoreContext(covariant _WrapContext context) → void
Apply the context for next layout
override
saveContext() WidgetContext
Get unmodified mutable context object
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited