platform/packages/core/model/example/main.dart
2024-10-12 18:45:27 -07:00

19 lines
351 B
Dart

import 'package:protevus_model/protevus_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});
}