TicketShape constructor

const TicketShape({
  1. Key? key,
  2. required Widget child,
  3. double maxWidth = 420,
  4. Color borderColor = Colors.purple,
  5. double borderRadius = 18,
  6. double notchRadius = 24,
  7. double notchOffsetFactor = 0.2,
  8. double borderWidth = 1.0,
})

Creates a TicketShape widget that paints and clips content to a rounded ticket shape with matching border.

Implementation

const TicketShape({
  super.key,
  required this.child,
  this.maxWidth = 420,
  this.borderColor = Colors.purple,
  this.borderRadius = 18,
  this.notchRadius = 24,
  this.notchOffsetFactor = 0.2,
  this.borderWidth = 1.0,
});