NiceCopyButton constructor

const NiceCopyButton({
  1. Key? key,
  2. required String content,
  3. String? label = 'Copy',
  4. String? copiedLabel = 'Copied!',
  5. IconData? icon = Icons.content_copy,
  6. IconData? copiedIcon = Icons.check,
  7. Duration feedbackDuration = const Duration(seconds: 2),
  8. bool compact = false,
  9. VoidCallback? onCopied,
})

Implementation

const NiceCopyButton({
  super.key,
  required this.content,
  this.label = 'Copy',
  this.copiedLabel = 'Copied!',
  this.icon = Icons.content_copy,
  this.copiedIcon = Icons.check,
  this.feedbackDuration = const Duration(seconds: 2),
  this.compact = false,
  this.onCopied,
});