From 9b7297edf2d83b7fc7f7d315cf22b2ff01305285 Mon Sep 17 00:00:00 2001 From: Pavel Kozlovskiy Date: Mon, 3 Jun 2019 12:34:11 +0300 Subject: [PATCH] Fix typo --- docs/docs/daos.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/daos.md b/docs/docs/daos.md index 06b67b57..a18cf6f3 100644 --- a/docs/docs/daos.md +++ b/docs/docs/daos.md @@ -16,7 +16,7 @@ part 'todos_dao.g.dart'; // fields for the tables. The type annotation is the database class // that should use this dao. @UseDao(tables: [Todos]) -class TodosDao extends DatabaseAccessor with _TodosDaoMixin { +class TodosDao extends DatabaseAccessor with _$TodosDaoMixin { // this constructor is required so that the main database can create an instance // of this object. TodosDao(MyDatabase db) : super(db); @@ -32,4 +32,4 @@ class TodosDao extends DatabaseAccessor with _TodosDaoMixin { } ``` If we now change the annotation on the `MyDatabase` class to `@UseMoor(tables: [Todos, Categories], daos: [TodosDao])` -and re-run the code generation, a generated getter `todosDao` can be used to access the instance of that dao. \ No newline at end of file +and re-run the code generation, a generated getter `todosDao` can be used to access the instance of that dao.