Category: Dart Programming

  • Object-Oriented Programming

    Dart is an object-oriented programming language, which means every value in a Dart is an object. A number is also an object in Dart language. Dart programming supports the concept of OOPs features like objects, classes, interfaces, etc. Object: An object is an entity, which has state and behavior. It can be physical or logical. In…

  • Final and Const Keyword

    We can use a final keyword to restrict the user. It can be applied in many contexts, such as variables, classes, and methods. Const keyword is used to declare constant. We cannot change the value of the const keyword after assigning it. Example :

  • Decision Making and Loops

    The decision-making is a feature that allows you to evaluate a condition before the instructions are executed. The Dart language supports the following types of decision-making statements: If statement If-else statement Switch statement The below diagram explains it more clearly. Example Loops are used to execute a block of code repeatedly until a specified condition becomes…

  • Operators

    Dart language supports all operators, as you are familiar with other programming languages such as C, Kotlin, and Swift. The operator’s name is listed below: Arithmetic Equality Increment and Decrement Logical Comparison

  • Variables and Functions

    Variables are the namespace in memory that stores values. The name of a variable is called as identifiers. They are the data containers, which can store the value of any type. For example: Here, myAge is a variable that stores an integer value 50. We can also give it int and double. However, Dart has a feature Type…

  • Data Type

    Dart is a Strongly Typed programming language. It means, each value you use in your programming language has a type either string or number and must be known when the code is compiled. Here, we are going to discuss the most common basic data types used in the Dart programming language. Data Type Example Descriptions…

  • What is Dart Programming

    Dart is an open-source, general-purpose, object-oriented programming language with C-style syntax developed by Google in 2011. The purpose of Dart programming is to create a frontend user interfaces for the web and mobile apps. It is under active development, compiled to native machine code for building mobile apps, inspired by other programming languages such as Java,…