VFlag constructor

const VFlag({
  1. Key? key,
  2. FlagState flagState = FlagState.informational,
  3. VoidCallback? onClosePressed,
  4. bool hasTitle = false,
  5. String title = "",
  6. bool hasAction = false,
  7. String action = "Action",
  8. VoidCallback? onActionPressed,
  9. bool hasLink = false,
  10. String link = "",
  11. VoidCallback? onLinkPressed,
  12. bool hasClose = false,
  13. required String description,
  14. VFlagStyle? style,
  15. VExt? vExt,
  16. EdgeInsetsGeometry? contentPadding,
  17. EdgeInsetsGeometry? flagIconPadding,
})

Implementation

const VFlag({
  Key? key,
  this.flagState = FlagState.informational,
  this.onClosePressed,
  this.hasTitle = false,
  this.title = "",
  this.hasAction = false,
  this.action = "Action",
  this.onActionPressed,
  this.hasLink = false,
  this.link = "",
  this.onLinkPressed,
  this.hasClose = false,
  required this.description,
  this.style,
  this.vExt,
  this.contentPadding,
  this.flagIconPadding,
}) : super(key: key);