RespValue<T> class final

Create a value based on the current screen size

Allows the users adjust the values based on breakpoints to make the UI responsive

Constructors

RespValue(BuildContext context, {T? xs, T? sm, T? md, T? lg, T? xl, T? xxl, Map<String, T>? others})
Constructor for creating a responsive value
const
RespValue.builder(BuildContext context, {RespValueBuilder<T>? xs, RespValueBuilder<T>? sm, RespValueBuilder<T>? md, RespValueBuilder<T>? lg, RespValueBuilder<T>? xl, RespValueBuilder<T>? xxl, Map<String, RespValueBuilder<T>>? others, dynamic common})
A builder that allows users to use builder pattern to create a responsive value. This will also allow the users to have a common value for all breakpoints that can be accessed using the parameter 'common' of the builder.

Properties

context → BuildContext
The build context of the widget. This is used to get the current width of the screen as well as the breakpoints set by the user
final
hashCode → int
The hash code for this object.
no setterinherited
lg → T?
final
md → T?
final
others → Map<String, T>?
Custom breakpoints The key should be the name of the breakpoint and the value should be the value that needs to be used for that breakpoint
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sm → T?
final
value → T
no setter
xl → T?
final
xs → T?
The default breakpoints of the device
final
xxl → T?
final

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