MSizedBox class
A fixed-size box, optionally wrapping child.
With no child it is blank space — the usual way to put a precise gap between two nodes, where MSpacer would instead absorb whatever room is left. With a child it constrains that child to the given size.
Constructors
- MSizedBox({double? width, double? height, MNode? child})
-
const
- MSizedBox.height(double height)
-
A fixed vertical gap — the common case inside an MColumn.
const
- MSizedBox.square(double size, {MNode? child})
-
A square box of
sizeon both axes.const - MSizedBox.width(double width)
-
A fixed horizontal gap — the common case inside an MRow.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited