platform/packages/model/example/main.dart
Tobe O 106535751b Add 'packages/model/' from commit '308cd94c783dcf884d88c1e6660bc86510616387'
git-subtree-dir: packages/model
git-subtree-mainline: cf2ad35d2b
git-subtree-split: 308cd94c78
2020-02-15 18:28:32 -05:00

20 lines
393 B
Dart

import 'package:angel_model/angel_model.dart';
void main() {
var todo = Todo(id: '34', isComplete: false);
print(todo.idAsInt == 34);
}
class Todo extends Model {
String text;
bool isComplete;
Todo(
{String id,
this.text,
this.isComplete,
DateTime createdAt,
DateTime updatedAt})
: super(id: id, createdAt: createdAt, updatedAt: updatedAt);
}