# Enums

> This page is about FlutterFlow Studio (the visual builder), not FlutterFlow (the app builder you use by describing your app).

URL: https://docs.flutterflow.io/resources/data-representation/enums

Learn how Enums can enhance the management of application states, product types, and process statuses by providing a robust method to handle predefined sets of values.

In FlutterFlow Studio, Enums (enumerations) provide a method for defining a set of named constants. They are typically used to represent a group of related values in a more readable and safe manner. 

They prevent invalid values from being assigned. For example, if you have an enum for days of the week, you can't mistakenly assign a non-existent day. In contrast, with strings or numbers, you might accidentally use an invalid or misspelled value like "Sundey" or "Sinday".

![enums](https://docs.flutterflow.io/assets/images/enums-fi-828b0b73ef99ab7ea726edd7172c6ca4.avif)

Here are some real-world examples where using Enums is beneficial:

1. **Application States**: A media player might use enums to keep track of playback states (e.g., playing, paused, stopped).
2. **Product Types, Sizes, or Categories**: A clothing store app might use enums to categorize clothing sizes (small, medium, large).
3. **Order or Process Status**: For tracking the status of orders, processes, or tasks (pending, inProgress, completed, canceled).

## Create and use Enums

1. You can create Enums from the left side navigation menu and add values to it.

<div style={{
    position: 'relative',
    paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
    height: 0,
    width: '100%'
}}>
    <iframe 
        src="https://demo.arcade.software/U6crZTuELtgYinr4ZxQp?embed&show_copy_link=true"
        title="Sharing a Project with a User"
        style={{
            position: 'absolute',
            top: 0,
            left: 0,
            width: '100%',
            height: '100%',
            colorScheme: 'light'
        }}
        frameborder="0"
        loading="lazy"
        webkitAllowFullScreen
        mozAllowFullScreen
        allowFullScreen
        allow="clipboard-write">
    </iframe>
</div>

:::tip
To keep a long list of Enums organized, group them in folders on the **Enums** tab of the **Data Schema** panel. To learn more, see [Organizing Data Types and Enums in Folders](https://docs.flutterflow.io/resources/data-representation/custom-data-types#organizing-data-types-and-enums-in-folders).
:::

2. Access the Enum values by navigating to the **Set from Variable** menu, then selecting **Enums > [your enum name] > Values**.

![enums.avif](https://docs.flutterflow.io/assets/images/enums-6f100f8b0496e611ff233cae9317751d.avif)

:::tip[Naming Convention]
When naming enums, always use **UpperCamelCase**, and for enum values, use **lowerCamelCase**, as recommended by the Dart Style Guide. To learn more, refer to the guide on **[Naming Variables & Functions](https://docs.flutterflow.io/resources/style-guide)**.
:::
