config property

Map<String, dynamic> config
final

Configuration map containing widget settings

Required keys:

  • title (String): Widget title displayed in header
  • color (String): Hex color code (e.g., "#2196F3")
  • scrollable (String): "yes" or "no" for content scrolling
  • height (String): Initial height in pixels (e.g., "300")
  • allowAdd (String): "true" or "false" to enable/disable adding items
  • allowEdit (String): "true" or "false" to enable/disable editing items
  • data (List): Array of items with structure:
    • id (int, optional): Unique identifier (auto-generated if not provided)
    • key (String): Item title
    • value (String): Item description
    • checked (bool): Selection state

Implementation

final Map<String, dynamic> config;