NiceResponsiveValue<T> class

Select values based on breakpoint.

final padding = NiceResponsiveValue<double>(
  xs: 8,
  sm: 12,
  md: 16,
  lg: 24,
).resolve(context);

Constructors

NiceResponsiveValue({required T xs, T? sm, T? md, T? lg, T? xl, T? xxl})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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
xs → T
final
xxl → T?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → T
Resolve the value for the current screen width.
resolveForBreakpoint(NiceBreakpoint breakpoint) → T
Resolve the value for a specific breakpoint.
toString() String
A string representation of this object.
inherited

Operators

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