Mukul Latiyan has Published 474 Articles

Enumerations in Dart Programming

Mukul Latiyan

Mukul Latiyan

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

358 Views

An enumeration is a set of predefined values. These values are known as members. They are useful when we want to deal with a limited set of values for the variable. For example, you can think of the number of days in a week - Monday, Tuesday, Wednesday etc.An Enumeration ... Read More

Continue statement in Dart Programming

Mukul Latiyan

Mukul Latiyan

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

86 Views

The continue statement is used when we want to skip over the current iteration of any loop. When the compiler sees a continue statement then the rest of the statements after the continue are skipped and the control is transferred back to the first statement in the loop for the ... Read More

Constructors in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:45:25

705 Views

Constructors are methods that are used to initialize an object when it gets created. Constructors are mainly used to set the initial values for instance variables. The name of the constructor is the same as the name of the class.Constructors are similar to instance methods but they do not have ... Read More

const keyword in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:44:52

683 Views

Dart provides us with two ways in which we can declare variables with fixed values. One of them is by declaring a variable with a const keyword, and the other is by declaring the variable with a final keyword.It should be noted that both of them does provide an assurance that ... Read More

Anonymous function in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:34:45

742 Views

A function without a name is known as an anonymous function. They behave in the exact same manner as a normal named function would. The only difference between the named and an anonymous function is how different they are in syntax.Anonymous functions are used in Dart to form closures. An ... Read More

Async and Await in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:27:02

1K+ Views

Async and Await keywords are used to provide a declarative way to define the asynchronous function and use their results.The async keyword is used when we want to declare a function as asynchronous and the await keyword is used only on asynchronous functions.Syntaxvoid main() async { .. }If the function ... Read More

Comments in Rust Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:26:33

674 Views

Comments in Rust are statements that are ignored by both the rust compiler and interpreter. They are mainly used for human understanding of the code.Generally, in programming, we write comments to explain the working of different functions or variables or methods to whosoever is reading our code.Comments enhance the code ... Read More

Bitwise operators in Dart Programming

Mukul Latiyan

Mukul Latiyan

Updated on 21-May-2021 12:26:03

3K+ Views

Bitwise operators are operators that are used to perform bit-level operations on operands. For example, consider two variables x and y where the values stored in them are 20 and 5 respectively.The binary representation of both these numbers will look something like this −x = 10100 y = 00101We make use ... Read More

Comments in Dart Programming

Mukul Latiyan

Mukul Latiyan

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

318 Views

Comments are a set of commands that are ignored by the compiler. They are used in a scenario where you want to attach a note to your code or a section of code so that when you visit it later, you can recall it easily.The comment statements are usually ignored ... Read More

Break statement in Dart Programming

Mukul Latiyan

Mukul Latiyan

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

94 Views

The break statement is used when we want to break or terminate the execution of a loop. Once the break statement is reached the control is transferred from the current loop to whatever is written after the loop.It is mostly used in the conditional statement and also in loops of all ... Read More

Advertisements