ResponsiveVariable<T> class
An annotation used to specify a variable to generate responsive code for. Can only be used on non static final fields.
- Annotations
-
- @Target.new({TargetKind.field})
Constructors
- ResponsiveVariable({required T mobile, required T tablet, required T laptop, required T desktop, required T widescreen})
-
ResponsiveVariable
const
Properties
- desktop → T
-
Value used for ScreenType.desktop. Must not be null.
It should be of a basic type or a non parameterized default constructor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- laptop → T
-
Value used for ScreenType.laptop. Must not be null.
It should be of a basic type or a non parameterized default constructor.
final
- mobile → T
-
Value used for ScreenType.mobile. Must not be null.
It should be of a basic type or a non parameterized default constructor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tablet → T
-
Value used for ScreenType.tablet. Must not be null.
It should be of a basic type or a non parameterized default constructor.
final
- type → Type
-
Type of the variable is set automatically from the annotation.
It should be of a basic type or a non parameterized default constructor.
final
- widescreen → T
-
Value used for ScreenType.widescreen. Must not be null.
It should be of a basic type or a non parameterized default constructor.
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