Skip to content
Ravi Teja Gudapati edited this page Jun 10, 2018 · 5 revisions

Jaguar automatically detects and handles immutable fields such as name and age in the following example:

class User {
  final String name;
  final int age;
  final String nationality;
  User(this.name, {this.age: 25}): nationality = 'Sweden';
}