platform/packages/model/example/main.dart
thomashii@dukefirehawk.com 82c6c9866e Publish angel3_model
2021-05-14 15:23:53 +08:00

20 lines
400 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(
{String? id,
this.text,
this.isComplete,
DateTime? createdAt,
DateTime? updatedAt})
: super(id: id, createdAt: createdAt, updatedAt: updatedAt);
}