ExpansionTile constructor

const ExpansionTile({
  1. Key? key,
  2. required String title,
  3. List<Widget> children = const [],
  4. bool initiallyExpanded = false,
  5. ValueChanged<bool>? onExpansionChanged,
  6. ExpansionTileController? controller,
  7. Color? expandedColor,
  8. Color? collapsedColor,
  9. Color? iconColor,
  10. FocusNode? focusNode,
})

Creates an ExpansionTile with the given title and optional children.

Implementation

const ExpansionTile({
  super.key,
  required this.title,
  this.children = const [],
  this.initiallyExpanded = false,
  this.onExpansionChanged,
  this.controller,
  this.expandedColor,
  this.collapsedColor,
  this.iconColor,
  this.focusNode,
});