A delegate for computing the layout of a render object with a single child.

Constructors

SingleChildLayoutDelegate()

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

getConstraintsForChild(BoxConstraints constraints) → BoxConstraints

Returns the box constraints for the child given the incoming constraints.

getPositionForChild(Size size, Size childSize) → Offset

Returns the position where the child should be placed given the size of this object and the size of the child.

getSize(BoxConstraints constraints) → Size

Returns the size of this object given the incoming constraints.

shouldRelayout(SingleChildLayoutDelegate oldDelegate) → bool

Override this method to return true when the child needs to be laid out.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited