ConstantBreakpoint class

A breakpoint that uses constant step increments.

Divides width into uniform steps based on breakpoint value. For example, with breakpoint=100, widths 0-99 map to 0, 100-199 map to 100, etc.

Implemented types

Constructors

ConstantBreakpoint(double breakpoint, {double minSize = 0, double maxSize = double.infinity})
Creates a ConstantBreakpoint.
const

Properties

breakpoint double
The step size for width calculations.
final
hashCode int
The hash code for this object.
no setterinherited
maxSize double
Maximum allowed size constraint.
final
minSize double
Minimum allowed size constraint.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMaxWidth(double width) double
Calculates the maximum width for the given container width.
override
getMinWidth(double width) double
Calculates the minimum width for the given container width.
override
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