import 'package:flutter/cupertino.dart'; import 'package:sqflite/sqflite.dart'; import 'habit.dart'; abstract class ToDoInterface { Future createTable(Database database); Future create({required String title, required String subtitle, required IconData icon}); Future> fetchAll(); Future fetchById(int id); Future update({required int id, required String title, required String subtitle, required IconData icon}); Future delete(int id); Future? updateCompletionStatus(int id, bool isCompleted); }