TCopyable constructor

const TCopyable({
  1. Key? key,
  2. required String text,
  3. required Widget? child,
  4. TextStyle? style,
  5. bool monospace = false,
  6. bool showButtonAlways = false,
  7. TButtonSize buttonSize = TButtonSize.xxs,
  8. String? buttonLabel,
  9. bool showToast = false,
  10. String tooltip = 'Copy to clipboard',
})

Creates a copyable container around child.

Implementation

const TCopyable({
  super.key,
  required this.text,
  required this.child,
  this.style,
  this.monospace = false,
  this.showButtonAlways = false,
  this.buttonSize = TButtonSize.xxs,
  this.buttonLabel,
  this.showToast = false,
  this.tooltip = 'Copy to clipboard',
});