> ## Documentation Index
> Fetch the complete documentation index at: https://starrycodes.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# String - Future Extensions

> Asynchronous String manipulation

<Steps titleSize="h3">
  <Step title="💾 Copy to Clipboard">
    <ResponseField name="copyToClipboard()" type="Future<void>" post={["async"]}>
      Copies the content of this string to the system clipboard. Must be awaited as it interacts with platform services.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      ElevatedButton(
        onPressed: () async {
          const secretCode = 'ABC-123-XYZ';
          await secretCode.copyToClipboard();
        },
        child: const Text('Copy Code'),
      );
      ```
    </ResponseField>
  </Step>
</Steps>
