17. And here we are!
• Open Source (BSD)
• Structured
• Anti-revolutionary
• Same goals as new Javascript frameworks
• The goal is to not break the web
22. Implementing a method – 1/4
abstract class Validator<T extends Validatable> {
bool validate(T object) {
}
}
23. Implementing a method - for in – 2/4
abstract class Validator<T extends Validatable> {
bool validate(T object) {
for (Object obj in object.valuesToValidate()) {
}
}
}
24. Implementing a method – 3/4
abstract class Validator<T extends Validatable> {
bool validate(T object) {
for (Object obj in object.valuesToValidate()) {
if (StringUtils.isEmpty(obj.toString())) {
}
}
}
}
25. Implementing a method – 4/4
abstract class Validator<T extends Validatable> {
bool validate(T object) {
for (Object obj in object.valuesToValidate()) {
if (StringUtils.isEmpty(obj.toString())) {
return false;
}
}
return true;
}
}
45. Pub - pubspec.yaml
name: pacifista_rocks
description: The best application in the whole world
version: 0.0.1
dependencies:
great_lib: any
46. dartdoc
/// This is a single-line documentation comment.
/**
* This is a multi-line documentation comment.
* To generate the documentation:
* $ dartdoc <filename>
*/
void main() {
}