Mukul Latiyan has Published 474 Articles

Iterables in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 13:07:02

600 Views

Iterables in Dart are a collection of values, or "elements", that we can access in a sequential manner.The elements of the iterable are accessed by making use of an iterator getter.There are multiple collections in Dart that implement the Iterables, for example, LinkedList, List, ListQueue, MapKeySet, MapValueSet and much more.There ... Read More

Immutable annotation in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 13:06:05

472 Views

We know that const keyword provides immutability in objects. But what about the cases, where we want the entire class to be immutable in nature.In such cases, we make use of the immutable annotation that is present inside the meta package of dart library.Syntaximport 'pacakge:meta/meta.dart'; @immutable class User { ... Read More

Immutability in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 13:05:44

548 Views

Immutability is the ability to remain constant. Whenever we talk about immutability we mention the immutable nature.In object oriented and functional programming, we make use of the immutable nature of objects a lot. Being immutable means that the state of the object cannot be modified after its creation.It is a ... Read More

If-Else in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 13:05:22

156 Views

If statements are a major part of any programming language as they allow us to run things based on certain conditions, that's why they come under the conditional statements category.Dart's if-else statements follow the same syntax as Java's ones.Syntaxif( condition ) {    statement }If the condition in the above ... Read More

Hierarchical Inheritance in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:50:38

1K+ Views

Hierarchical inheritance is the case of inheritance when two classes inherit a single class.The syntactic representation of a hierarchical inheritance looks something like this −class A {} class B extends A {} class C extends A {}In the above syntactic representation, we can see that two classes, namely B and ... Read More

Hello World in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:50:00

3K+ Views

A Hello World program is the first program that you learn whenever you are learning a new programming language. It might be a simple program but it is a great entry point as you get to know how a program works in Dart, how to run a dart file. It ... Read More

Getter and Setter in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:49:35

3K+ Views

Reading and writing access to objects is very important in any programming language. Getter and Setter are the exact methods that we use when we want to access the reading and writing privileges to an object's properties.SyntaxA getter usually looks something like this -returnType get fieldName {    // return ... Read More

Future class in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:47:28

359 Views

There are different classes and keywords in Dart which we can use when we want to run Asynchronous code. The future class allows us to run asynchronous code and we can also avoid the callback hell with the help of it. A future mainly represents the result of an asynchronous operation.In Dart, ... Read More

Functions in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:47:04

483 Views

Dart is a true object-oriented programming language. Even functions have their type in dart. Functions can be assigned to a variable and we can even pass them to another function as well. Functions in Dart are also objects, like everything else.Let's create a simple function that accepts an integer as ... Read More

final keyword in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:46:38

3K+ Views

The final keyword in Dart is used to create constants or objects that are immutable in nature. The only difference between the final and const keyword is that final is a runtime-constant, which in turn means that its value can be assigned at runtime instead of the compile-time that we had ... Read More

Advertisements