CardBuilder typedef

CardBuilder = List<Widget> Function(int index)

A function type that builds a list of widgets for a card at a given index.

The returned list should contain exactly 5 widgets in this order:

  • 0: Title widget
  • 1: Left title widget
  • 2: Right title widget
  • 3: Left value widget
  • 4: Right value widget

Implementation

typedef CardBuilder = List<Widget> Function(int index);