---
title: "Discussion on \"Difference Between var & dynamic keywords in dart\" | Hashnode"
description: "Discussion on \"Difference Between var & dynamic keywords in dart\". Certainly! In simple terms:\n\nvar in Dart:\n\nUse var when you want the Dart compiler to figure out and set the type of a variable based on the value it is assigned.\n\nThe type is determined at compile-time and remains fixed once assigned.\n\n\n\n\n    Exampl..."
url: "https://hashnode.com/posts/difference-between-var-dynamic-keywords-in-dart/65f127bb27b0b638599cf173"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference Between var & dynamic keywords in dart](https://jinali.hashnode.dev/difference-between-var-dynamic-keywords-in-dart?utm_source=hashnode&utm_medium=feed)

Certainly! In simple terms: var in Dart: Use var when you want the Dart compiler to figure out and set the type of a variable based on the value it is assigned. The type is determined at compile-time and remains fixed once assigned. Exampl...

Mar 13, 2024 · 1 min read · jinali.hashnode.dev  
Updated Mar 19, 2024  
Read the article

-   [#var](https://hashnode.com/tag/var)
-   [#dynamic](https://hashnode.com/tag/dynamic)
-   [#difference](https://hashnode.com/tag/difference)

## Written by

[Jinali Ghoghari](https://hashnode.com/@JinaliInFlutterLand)

@JinaliInFlutterLand

  
[View profile](https://hashnode.com/@JinaliInFlutterLand)

Flutter Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
