platform/packages/model/example/main.dart

20 lines
342 B
Dart
Raw Normal View History

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});
}