Responsive<T> class

A property that adapts to different screen sizes Get the value for the current screen by calling resolve and provide the build context.

Constructors

Responsive(Map<ScreenScope, T> values)
Responsive.fromJson(Map<String, dynamic> map, {T decoder(dynamic element)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<ScreenScope, T>
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context, [T? combine(T? previousValue, T? element)?]) → T?
toJson({dynamic encoder(T? element)?}) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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