AlternatingStyleStrategy class
This strategy renders items in alternating variations of the ThemeData.primaryColor.
It renders even items at 0.5 opacity and odd items using the original color. If the item count is odd, the first item is rendered with 0.7 opacity to prevent a non-uniform style.
- Implemented types
- Mixed in types
Constructors
-
AlternatingStyleStrategy({List<
int> disabledIndices = const <int>[]}) -
const
Properties
-
disabledIndices
→ List<
int> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDisabledItemStyle(
ThemeData theme, int index, int itemCount, FortuneItemStyle orElse()) → FortuneItemStyle -
inherited
-
getItemStyle(
ThemeData theme, int index, int itemCount) → FortuneItemStyle -
Creates an FortuneItemStyle based on the passed
theme
while considering an item'sindex
with respect to the overallitemCount
.override -
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