ChatCodePreview constructor

const ChatCodePreview({
  1. Key? key,
  2. required String source,
  3. String? language,
  4. double maxHeight = 240,
  5. int maxCharacters = 32768,
  6. bool expanded = false,
  7. ValueChanged<bool>? onExpandedChanged,
  8. FutureOr<void> onCopy(
    1. String source
    )?,
})

Implementation

const ChatCodePreview({
  super.key,
  required this.source,
  this.language,
  this.maxHeight = 240,
  this.maxCharacters = 32768,
  this.expanded = false,
  this.onExpandedChanged,
  this.onCopy,
}) : assert(maxHeight > 0),
     assert(maxCharacters > 0);