AlternatingStyleStrategy class Null safety

This strategy renders items in alternating variations of the ThemeData.primaryColor.

It renders even items with 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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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's index with respect to the overall itemCount.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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