TCopyable.text constructor

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

Creates a copyable text widget with optional monospace styling.

Implementation

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