S2Tile<T> constructor

const S2Tile<T>(
  1. {Key? key,
  2. required Widget value,
  3. required GestureTapCallback onTap,
  4. required Widget title,
  5. Widget? leading,
  6. Widget? trailing,
  7. String? loadingText,
  8. Widget? loadingMessage,
  9. Widget? loadingIndicator,
  10. bool isLoading = false,
  11. bool isError = false,
  12. bool isTwoLine = false,
  13. bool enabled = true,
  14. bool selected = false,
  15. bool dense = false,
  16. bool hideValue = false,
  17. EdgeInsetsGeometry? padding,
  18. Widget? body}
)

Create a default trigger widget

Implementation

const S2Tile({
  Key? key,
  required this.value,
  required this.onTap,
  required this.title,
  this.leading,
  this.trailing,
  this.loadingText,
  this.loadingMessage,
  this.loadingIndicator,
  this.isLoading = false,
  this.isError = false,
  this.isTwoLine = false,
  this.enabled = true,
  this.selected = false,
  this.dense = false,
  this.hideValue = false,
  this.padding,
  this.body,
}) : super(key: key);