> ## 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.

# int - Mock Data & Assets

> Extensions on the int type to generate mock data (Lorem Ipsum, random strings) and highly customizable placeholder image URLs.

{/* ### 🔢 Int as a Generator */}

{/* ```dart ExtendGenerator icon="database" lines wrap */}

{/* final longString = 20.randomString; */}

{/* // Placeholder asset */}

{/* ``` */}

<Steps titleSize="h3">
  <Step title="📰 Text & Content">
    {/*  ------------------ */}

    <ResponseField name="loremWords" type="String">
      Generates a string with `[this]` number of Lorem Ipsum words.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      final text = 10.loremWords;
      // text might be: "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod"
      ```
    </ResponseField>

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

    <ResponseField name="loremParagraphs" type="String">
      Generates `[this]` number of Lorem Ipsum paragraphs. Each paragraph is approximately 40 words long and separated by two newline characters (`\n\n`).

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      final paragraphs = 3.loremParagraphs;
      // Returns three paragraphs of text separated by blank lines.
      ```
    </ResponseField>

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

    <ResponseField name="randomString" type="String">
      Generates a random alphanumeric string of \[this] length (mixed case letters and numbers).

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      final apiKey = 32.randomString;
      // apiKey might be: "a8JfKz92B4mP1yQ0sR7tV3uW6xE5"
      ```
    </ResponseField>
  </Step>

  <Step title="🖼️ Assets & Utility">
    {/*  ------------------ */}

    <ResponseField name="placeholderImage({int? height, bool grayscale, int? blur})" type="String">
      <Expandable title="Parameters">
        <ParamField body="height" type="int?" default="width (this)">
          The `height` of the image. If `null`, the image will be `square`.
        </ParamField>

        <ParamField body="grayscale" type="bool" default="false">
          If `true`, the image will be rendered in `black` and `white`.
        </ParamField>

        <ParamField body="blur" type="int?" default="null">
          `Blur` level between `1` and `10` (clamped automatically).
        </ParamField>
      </Expandable>

      Generates a versatile placeholder `image URL` from Lorem Picsum, using the integer as the width.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      // Rectangle, 400x200, Grayscale:
      Image.network(400.placeholderImage(height: 200, grayscale: true));
      ```
    </ResponseField>
  </Step>
</Steps>

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

{/* Generates a string with `[this]` number of Lorem Ipsum words. */}

{/*     ```dart ExtendGenerator icon="database" lines wrap */}

{/*     // text might be: "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod" */}

{/* </CodeGroup> */}

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

{/* Generates `[this]` number of Lorem Ipsum paragraphs. Each paragraph is approximately 40 words long and separated by two newline characters (`\n\n`). */}

{/*     ```dart ExtendGenerator icon="database" lines wrap */}

{/*     // Returns three paragraphs of text separated by blank lines. */}

{/* </CodeGroup> */}

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

{/* Generates a random alphanumeric string of [this] length (mixed case letters and numbers). */}

{/*     ```dart ExtendGenerator icon="database" lines wrap */}

{/*     // apiKey might be: "a8JfKz92B4mP1yQ0sR7tV3uW6xE5" */}

{/* </CodeGroup> */}

{/* ### 🖼️ Assets & Utility */}

{/* <ResponseField name="placeholderImage({int? height, bool grayscale, int? blur})" type="String"> */}

{/* <Expandable title="Parameters"> */}

{/*         The `height` of the image. If `null`, the image will be `square`. */}

{/*     <ParamField body="grayscale" type="bool" default="false"> */}

{/*     </ParamField> */}

{/*         `Blur` level between `1` and `10` (clamped automatically). */}

{/* </Expandable> */}

{/*     ```dart ExtendGenerator icon="database" lines wrap */}

{/*     Image.network(400.placeholderImage(height: 200, grayscale: true)); */}

{/* </CodeGroup> */}
