SettingsItem constructor

SettingsItem({
  1. required IconData icons,
  2. IconStyle? iconStyle,
  3. required String title,
  4. TextStyle? titleStyle,
  5. String? subtitle,
  6. TextStyle? subtitleStyle,
  7. Color? backgroundColor,
  8. Widget? trailing,
  9. VoidCallback? onTap,
  10. int? titleMaxLine,
  11. int? subtitleMaxLine,
  12. TextOverflow? overflow = TextOverflow.ellipsis,
})

Implementation

SettingsItem(
    {required this.icons,
    this.iconStyle,
    required this.title,
    this.titleStyle,
    this.subtitle,
    this.subtitleStyle,
    this.backgroundColor,
    this.trailing,
    this.onTap,
    this.titleMaxLine,
    this.subtitleMaxLine,
    this.overflow = TextOverflow.ellipsis});