Stack class Null safety

A widget that positions its children relative to the edges of its box.

Inheritance

Constructors

Stack({Alignment alignment = Alignment.topLeft, StackFit fit = StackFit.loose, Overflow overflow = Overflow.clip, List<Widget> children = const <Widget>[]})

Properties

alignment Alignment
How to align the non-positioned and partially-positioned children in the stack.
final
box PdfRect?
The bounding box of this widget, calculated at layout time
read / write, inherited
children List<Widget>
final, inherited
fit StackFit
How to size the non-positioned children in the stack.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
overflow Overflow
Whether overflowing children should be clipped.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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
toString() String
A string representation of this object. [...]
inherited

Operators

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