Dart
Constructors
class Article { String author; String body; // positional arguments (since these are required there is no need for required annotation Article(this.author, this.body); // named arguments (since these are not required they must be marked as required or given a default value Article({required this.author, this.body = "lorem ipsum"}); }