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