Breakpoints class

Globally configurable device-class breakpoints, in logical pixels.

Configure once at startup, before runApp — e.g. in main():

void main() {
  Breakpoints.tablet = 700;
  Breakpoints.desktop = 1200;
  runApp(const ResponsiveScope(child: MyApp()));
}

These are process-global mutable statics; there is no per-call configuration. Set tablet < desktop: classify assumes ascending thresholds, so an inverted pair (e.g. tablet = 2000, desktop = 1024) silently misclassifies. There is no runtime guard for this, by minimalism — a misconfiguration is a startup error that is immediately visible in development.

Constructors

Breakpoints()

Properties

hashCode int
The hash code for this object.
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

Static Properties

desktop double
Minimum width (logical px) classified as DeviceSize.desktop.
getter/setter pair
tablet double
Minimum width (logical px) classified as DeviceSize.tablet.
getter/setter pair