> ## 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 - Asset & Generator

> Primary utilities for generating dynamic user avatar URLs (DiceBear), plus deprecated methods for UUID and Lorem Ipsum now moved to ExtendGenerator.

<Steps titleSize="h3">
  <Step title="🖼️ Avatar Generation (DiceBear)">
    <ResponseField name="avatar({DiceBearStyle style, DiceBearImageType type, int? size, bool flip, String? backgroundColor})" type="String">
      <Expandable title="Parameters">
        <ParamField body="style" type="DiceBearStyle" default="DiceBearStyle.avataaars">
          The visual style of the avatar (e.g., `avataaars`, `bottts`).
        </ParamField>

        <ParamField body="type" type="DiceBearImageType" default="DiceBearImageType.png">
          The image format (`png` or `svg`).
        </ParamField>

        <ParamField body="size" type="int?" default="null">
          The `size` of the image in pixels.
        </ParamField>

        <ParamField body="flip" type="bool" default="false">
          Flips the image `horizontally`.
        </ParamField>

        <ParamField body="backgroundColor" type="String?" default="null">
          Hex code without # (e.g., `b6e3f4`) or `transparent`.
        </ParamField>
      </Expandable>

      Generates a `DiceBear` avatar URL using `[this]` string as the unique `seed`. The resulting URL can be used directly in an `Image.network` widget.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      // Generates a 'bottts' style avatar using the user's ID as the seed.
      Image.network('user_id_123'.avatar(
        style: DiceBearStyle.bottts,
        size: 150,
        backgroundColor: 'ffc0cb', // Pink background
      ));
      ```
    </ResponseField>
  </Step>
</Steps>

{/*  ------------------ */}

{/*     <ResponseField name="generateLoremIpsum({int wordCount})" type="String" deprecated> */}

{/*     </ResponseField> */}

{/*         [DEPRECATED] Use `int.randomString` instead (e.g., `30.randomString`). */}

{/*     <ResponseField name="generateUUID()" type="String" deprecated> */}

{/*     </ResponseField> */}

{/*         [DEPRECATED] Use `await ExtendGenerator.clipboardData` instead. */}

{/* </Card> */}
