Breakpoints class

An utility to keep all your break points in a class, it is mainly used by the SuperResponsive widget, that makes it available on the entire widget three

Breakpoints.first and Breakpoints.second are required.

Constructors

Breakpoints({required double first, required double second, double? third, double? fourth, double? fifth, double? sixth})
Creates an instance of Breakpoints

Properties

extremes List<double>
Return a List
no setter
fifth double?
Fifth break point, it is not required it must be grater than the next break points
final
first double
First break points it must be greater than the next break points
final
fourth double?
Fourth break point, it is not required it must be grater than the next break points
final
hashCode int
The hash code for this object.
no setterinherited
last double
Returns you last break point
no setter
list List<double>
Returns all your break points a List
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second double
Second break point it must be grater than the next break points
final
sixth double?
Sixth break point, it is not required it must be grater than the next break points
final
third double?
Third break point, it is not required it must be grater than the next break points
final

Methods

currentBreakPoint(double maxWidth) double
Returns the current break point.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
when<T extends Object?>({required double maxWidth, required T first(double breakpoint), required T second(double breakpoint), T third(double breakpoint)?, T fourth(double breakpoint)?, T fifth(double breakpoint)?, T sixth(double breakpoint)?}) → T
Calls an specific callback based on the current break point, only the first and second cases are required.

Operators

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