> For the complete documentation index, see [llms.txt](https://des-vu-technologies.gitbook.io/blogs-by-shankar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://des-vu-technologies.gitbook.io/blogs-by-shankar/variablesandconstants/variables.md).

# variables

````markdown
## Variables in Dart

Variables are containers used to store values in a program. Dart supports different types of variables to store various kinds of values. Here's an example of creating a variable and initializing it in Dart:

```dart
void main() {
  var name = "John";
  print(name);
}
````

In this example, the variable `name` contains the value "John."

### Naming Convention for Variables in Dart

It's a good practice to follow naming conventions for variables. In Dart, variable names should start with a lowercase letter, and for every subsequent word, the first letter should be capitalized. This convention is known as `lowerCamelCase`. For example, `num1`, `fullName`, and `isMarried` are valid variable names following this convention.

### File Naming Conventions

File naming conventions help ensure consistency in naming files across your organization. Here are some popular cases:

#### Camel Case (`camelCase`)

Camel case capitalizes all words except the first word and removes spaces between them. For instance, "public domain software" can be written as `publicDomainSoftware`.

#### Pascal Case (`PascalCase`)

Pascal case capitalizes all words in the name, including the first word, and removes spaces between them. For instance, "public domain software" can be written as `PublicDomainSoftware`.

#### Snake Case (`snake_case`)

Snake case combines words by replacing spaces with underscores (`_`). Using the same example, "public domain software" becomes `public_domain_software`.

#### Kebab Case (`kebab-case`)

Kebab case is similar to snake case, but it replaces spaces with dashes (`-`). The file name "public domain software" in kebab case is `public-domain-software`.

```
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://des-vu-technologies.gitbook.io/blogs-by-shankar/variablesandconstants/variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
