FSelectTile<T> constructor

FSelectTile<T>({
  1. required Widget title,
  2. required T value,
  3. FTileStyle? style,
  4. Widget? subtitle,
  5. Widget? details,
  6. String? semanticLabel,
  7. ValueChanged<bool>? onChange,
  8. bool? enabled,
  9. bool autofocus = false,
  10. FocusNode? focusNode,
  11. ValueChanged<bool>? onFocusChange,
  12. Widget? checkedIcon,
  13. Widget? uncheckedIcon,
  14. Widget? suffixIcon,
  15. Key? key,
})

Creates a FSelectTile with a prefix check icon.

Implementation

FSelectTile({
  required this.title,
  required this.value,
  this.style,
  this.subtitle,
  this.details,
  this.semanticLabel,
  this.onChange,
  this.enabled,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  Widget? checkedIcon,
  Widget? uncheckedIcon,
  Widget? suffixIcon,
  super.key,
})  : checkedIcon = checkedIcon ?? FIcon(FAssets.icons.check),
      uncheckedIcon = uncheckedIcon ?? FIcon.empty(),
      _suffix = false,
      _icon = suffixIcon;