BreakpointBuilder class
Builds a layout from constraints and returns a Breakpoint.fromConstraints.
This is a convenience builder that combines an often together needed LayoutBuilder with a Breakpoint. Instead of using a LayoutBuilder and its build method, to calculate a Breakpoint, this BreakpointBuilder can be used instead. The BreakpointBuilder can e.g. be used together with a GridView to create a grid where the amount of columns depends on the returned columns in the Breakpoint info from the BreakpointBuilder.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BreakpointBuilder
Constructors
- BreakpointBuilder({Key? key, required Widget builder(BuildContext, Breakpoint), BreakType type = BreakType.material, int? columnInterval, double? minColumnSize})
-
const
Properties
- builder → Widget Function(BuildContext, Breakpoint)
-
final
- columnInterval → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- minColumnSize → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BreakType
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited