19 lines
351 B
Dart
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});
|
|
}
|