ResponsiveBreakpoint class Null safety

Control the responsiveness of the app at a breakpoint.

Specify a responsive behavior at a breakpoint value. The following behaviors are supported: Resize - default behavior. AutoScale - scales UI from breakpoint up. AutoScaleDown - scales UI from breakpoint down and from breakpoint up. Has the same behavior as AutoScale but scales down as well. Tag - named breakpoint value. Inherits behavior. Add a name to a breakpoint for ease of reference. The scaleFactor enlarges or shrinks the UI by a multiple of x. This values can be applied to all breakpoints.

Annotations

Constructors

ResponsiveBreakpoint({required double breakpoint, String? name, ResponsiveBreakpointBehavior behavior = ResponsiveBreakpointBehavior.RESIZE, double scaleFactor = 1})
const
ResponsiveBreakpoint.autoScale(double breakpoint, {String? name, double scaleFactor = 1})
const
ResponsiveBreakpoint.autoScaleDown(double breakpoint, {String? name, double scaleFactor = 1})
const
ResponsiveBreakpoint.resize(double breakpoint, {String? name, double scaleFactor = 1})
const
ResponsiveBreakpoint.tag(double breakpoint, {required String name})
const

Properties

behavior ResponsiveBreakpointBehavior
final
breakpoint double
final
hashCode int
The hash code for this object. [...]
read-only, override
isAutoScale → dynamic
read-only
isAutoScaleDown → dynamic
read-only
isResize → dynamic
read-only
isTag → dynamic
read-only
name String?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaleFactor double
final

Methods

copyWith({double? breakpoint, String? name, ResponsiveBreakpointBehavior? behavior, double? scaleFactor}) ResponsiveBreakpoint
merge(ResponsiveBreakpoint responsiveBreakpoint) ResponsiveBreakpoint
Merge overwrite operation. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override