DesignStyleOf class
A part's style layers read at its states: its own style:, then its
component theme (first wins). Each getter is the first layer's value for
states, or null, so the part goes on to the theme-wide knobs and its own
default.
final look = DesignStyleOf([style, themed], states);
final fill = look.fill ?? const Color(0xFFFFFFFF);
- Annotations
Constructors
-
DesignStyleOf(List<
DesignStyle?> layers, Set<WidgetState> states) -
The
layersread atstates.const
Properties
- edge → Color?
-
The rim's colour.
no setter
- fill → Color?
-
The face.
no setter
- foreground → Color?
-
The words and icons.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double?
-
An icon's size.
no setter
-
layers
→ List<
DesignStyle?> -
The styles, first wins.
final
- minimumSize → Size?
-
The least size of the face.
no setter
-
overlay
→ WidgetStateProperty<
Color?> ? -
The overlay for any states, as a press reads it for its wash; null
when no layer has one.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → OutlinedBorder?
-
The outline.
no setter
- side → BorderSide?
-
The whole rim.
no setter
-
states
→ Set<
WidgetState> -
The part's states.
final
- textStyle → TextStyle?
-
The words' style.
no setter
Methods
-
at(
Set< WidgetState> states) → DesignStyleOf -
The same layers at other
states. -
freeze(
) → DesignStyle - The values resolved at states, as one style, so a grouped part can hand its states to a part inside it (a list row's checkbox drawn as the row is pressed).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
padding(
TextDirection direction) → EdgeInsets? -
The room inside, resolved for
direction. -
shapes(
OutlinedBorder? fallback) → WidgetStateProperty< OutlinedBorder?> -
The shape for any states, as a press reads it for its ring and wash;
fallbackwhen no layer gives one. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited