OudsActionCard constructor

const OudsActionCard({
  1. Key? key,
  2. required String semanticsLabel,
  3. required VoidCallback? onPressed,
  4. required Widget child,
  5. OudsCardStyle style = OudsCardStyle.filled,
  6. bool enabled = true,
  7. bool backgroundColor = true,
  8. bool divider = false,
  9. OudsCardLoader? loader,
  10. OudsSkeleton? skeleton,
})

Creates a single-action card with a localized accessible name.

Implementation

const OudsActionCard({
  super.key,
  required this.semanticsLabel,
  required this.onPressed,
  required this.child,
  this.style = OudsCardStyle.filled,
  this.enabled = true,
  this.backgroundColor = true,
  this.divider = false,
  this.loader,
  this.skeleton,
}) : assert(semanticsLabel != '');