UniformStyleStrategy class

This strategy renders all items using the same style based on the current ThemeData.

The ThemeData.primaryColor is used as the border color and the background is drawn using the same color at 0.3 opacity.

Implemented types
Mixed in types

Constructors

UniformStyleStrategy({Color? color, Color? borderColor, double? borderWidth, TextAlign? textAlign, TextStyle? textStyle, List<int> disabledIndices = const <int>[]})
const

Properties

borderColor Color?
final
borderWidth double?
final
color Color?
final
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
textAlign TextAlign?
final
textStyle TextStyle?
final

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 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