draggableText method

BloomNativeNode draggableText(
  1. String text, {
  2. BloomNativeNode? preview,
  3. String? key,
})

A system text drag source, including cross-app drags (iOS 16+).

Implementation

BloomNativeNode draggableText(
  String text, {
  BloomNativeNode? preview,
  String? key,
}) =>
    BloomNativeNode(
        type: 'effect.drag',
        key: key,
        props: {'kind': 'text', 'value': text},
        slots: {'content': this, if (preview != null) 'preview': preview});