2024-09-25 04:04:57 +00:00
|
|
|
import 'package:platform_model/model.dart';
|
2024-09-23 01:45:52 +00:00
|
|
|
|
|
|
|
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});
|
|
|
|
}
|