Widget.expansionTile constructor Null safety

const Widget.expansionTile(
  1. {Key? key,
  2. Widget? leading,
  3. required Widget title,
  4. Widget? subtitle,
  5. @Default([]) List<Widget> children,
  6. Widget? trailing,
  7. @Default(false) bool initiallyExpanded,
  8. @Default(false) bool maintainState,
  9. EdgeInsets? tilePadding,
  10. CrossAxisAlignment? expandedCrossAxisAlignment,
  11. Alignment? expandedAlignment,
  12. EdgeInsets? childrenPadding,
  13. Color? backgroundColor,
  14. Color? collapsedBackgroundColor,
  15. Color? textColor,
  16. Color? collapsedTextColor,
  17. Color? iconColor,
  18. Color? collapsedIconColor,
  19. ShapeBorder? shape,
  20. ShapeBorder? collapsedShape,
  21. Clip? clipBehavior,
  22. ListTileControlAffinity? controlAffinity}
)

Implementation

const factory Widget.expansionTile({
  Key? key,
  Widget? leading,
  required Widget title,
  Widget? subtitle,
  @Default([]) List<Widget> children,
  Widget? trailing,
  @Default(false) bool initiallyExpanded,
  @Default(false) bool maintainState,
  EdgeInsets? tilePadding,
  CrossAxisAlignment? expandedCrossAxisAlignment,
  Alignment? expandedAlignment,
  EdgeInsets? childrenPadding,
  Color? backgroundColor,
  Color? collapsedBackgroundColor,
  Color? textColor,
  Color? collapsedTextColor,
  Color? iconColor,
  Color? collapsedIconColor,
  ShapeBorder? shape,
  ShapeBorder? collapsedShape,
  Clip? clipBehavior,
  ListTileControlAffinity? controlAffinity,
}) = ExpansionTile;