SheetFit enum

How to size the content of a Sheet.

This enum is used with Sheet.fit to control how the BoxConstraints passed from the sheet to the sheet's child are adjusted.

See also:

  • Sheet, the widget that uses this.
Inheritance

Constructors

SheetFit()
const

Values

loose → const SheetFit

The constraints passed to the child from the sheet are loosened.

For example, if the sheet has expand constraints with 600 high, this would allow the child of the sheet to have any height from zero to maximum available.

expand → const SheetFit

The constraints passed to the stack from its parent are tightened to the biggest size allowed.

For example, if the sheet has loose constraints with a height in the range 0 to 600, then the child of the sheet would all be sized as 600 high.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<SheetFit>
A constant List of the values in this enum, in order of their declaration.