getItemStyle method Null safety

FortuneItemStyle getItemStyle(
  1. ThemeData theme,
  2. int index,
  3. int itemCount
)

Creates an FortuneItemStyle based on the passed theme while considering an item's index with respect to the overall itemCount.

Implementation

FortuneItemStyle getItemStyle(
  ThemeData theme,
  int index,
  int itemCount,
);