UniformStyleStrategy class Null safety

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