In this tutorial, we will learn how to concatenate one string with an integer. For example, if one integer 25 is given, we will concatenate with one string, say degree to create the final string 25 degree.
ReadA metadata starts with an @ character followed by the name of the metadata. Metadata is used to provide extra information in code. For example, if you override one method, @override is used above the overridden method name. This is a metadata annotation. We can create one annotation in dart.
Readtypedef is a function-type alias. Functions are objects in dart-like any other type. typedef are alias for functions. typedef keyword is used to define a typedef.
ReadComments are equally important in any programming language. Comments are ignored by the compiler i.e. they are not executed by the compiler and they don't provide any impact on the output of the program.
ReadCallable class is a way in dart to change one dart class that makes its instances callable like a function. The only change requires is to implement one new function called call in that class. This function can take different parameters and it can return values like any other normal function.
ReadDart generators are used to produce a sequence of values lazily. We have two different types of generators called synchronous and asynchronous generators. In this post, I will show you how these generators works with examples.
ReadAsynchronous programming runs in a separate thread. It can execute without blocking the main thread i.e. the application can keep working while the asynchronous code runs in the background. For example, if the application is downloading some data over the network, that part we can put in a asynchronous block.
ReadWrite one dart program to find random numbers in a range. Dart math library dart:math provides one function to create random numbers. We will use this function to find random numbers in a range.
Readdart:math library is an inbuilt library in dart. It contains different mathematical constants, mathematical functions and a few classes. You can simply use this library by importing it in your code like below :.
ReadDart math library, dart:math provides different mathematical functions and constants. One of its utility class is the Point class. This class is useful to represent two dimensional positions. It provides a couple of different functions and properties used in two dimensional plan coordinate calculations.
Read