barely working example with Isar

This commit is contained in:
SomnusVeritas
2023-11-07 23:24:18 +01:00
parent d1da474998
commit 17d3a125fb
13 changed files with 78 additions and 34 deletions

View File

@@ -5,7 +5,7 @@ import '../../models/recipe.dart';
class RecipeProvider extends ChangeNotifier {
Recipe? _recipe;
Recipe get recipe => _recipe ??= Recipe(title: '');
Recipe get recipe => _recipe ??= Recipe(id: 0, title: '');
set recipe(Recipe recipe) {
_recipe = recipe;