June 2017
Intermediate to advanced
873 pages
18h 9m
English
Dart gives us many flexible and succinct ways to build objects through constructors:
Person constructor where salary is optional:class Person{
String name;
num salary
Person(this.name, {this.salary});
} BankAccount for the same owner as acc is created:BankAccount.sameOwner(BankAccount acc): owner = acc.owner;
const constructors, as shown in the following code:class ImmutableSquare {
finalnum length;
static finalImmutableSquare ONE = const ImmutableSquare(1);
constImmutableSquare(this.length);
}However, modern modular software applications require more flexible ways to build and return ...
Read now
Unlock full access