ExpansionTile constructor Null safety

const ExpansionTile(
  1. {Key? key,
  2. Widget? leading,
  3. required Widget title,
  4. Widget? subtitle,
  5. List<Widget> children,
  6. Widget? trailing,
  7. bool initiallyExpanded,
  8. 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 ExpansionTile(
    {final Key? key,
    final Widget? leading,
    required final Widget title,
    final Widget? subtitle,
    final List<Widget> children,
    final Widget? trailing,
    final bool initiallyExpanded,
    final bool maintainState,
    final EdgeInsets? tilePadding,
    final CrossAxisAlignment? expandedCrossAxisAlignment,
    final Alignment? expandedAlignment,
    final EdgeInsets? childrenPadding,
    final Color? backgroundColor,
    final Color? collapsedBackgroundColor,
    final Color? textColor,
    final Color? collapsedTextColor,
    final Color? iconColor,
    final Color? collapsedIconColor,
    final ShapeBorder? shape,
    final ShapeBorder? collapsedShape,
    final Clip? clipBehavior,
    final ListTileControlAffinity? controlAffinity}) = _$ExpansionTile;