platform/packages/model/example/main.dart
2021-08-02 20:20:07 +08:00

20 lines
415 B
Dart

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