platform/packages/model/example/main.dart
2024-09-24 21:04:57 -07:00

19 lines
342 B
Dart

import 'package:platform_model/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 super.id,
this.text,
this.isComplete = false,
super.createdAt,
super.updatedAt});
}