SPResponsiveValue<T> class

Stores one value that can change across responsive breakpoints.

Missing values inherit from the nearest configured smaller breakpoint.

Available extensions
Annotations

Constructors

SPResponsiveValue({required T base, T? sm, T? md, T? lg, T? xl, T? xxl})
const

Properties

base → T
Default value used from the extra-small breakpoint.
final
hashCode int
The hash code for this object.
no setteroverride
lg → T?
final
md → T?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sm → T?
final
xl → T?
final
xxl → T?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(double width, {SPBreakpoints breakpoints = SPBreakpoints.standard}) → T
Resolves the value using the supplied available width.
resolveBreakpoint(SPBreakpoint breakpoint) → T
Resolves the value using an already known breakpoint.
resolveFrom(BuildContext context, {SPBreakpoints breakpoints = SPBreakpoints.standard}) → T

Available on SPResponsiveValue<T>, provided by the SPResponsiveValueBuildContext extension

Resolves this value using the current viewport width.
toString() String
A string representation of this object.
override

Operators

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