diff --git a/hive/README.md b/hive/README.md index 75d51594..0cf48831 100644 --- a/hive/README.md +++ b/hive/README.md @@ -178,6 +178,8 @@ class Person extends HiveObject { import 'package:hive_ce/hive.dart'; import 'person.dart'; +part 'hive_adapters.hive.dart'; + @GenerateAdapters([AdapterSpec()]) // Annotations must be on some element // ignore: unused_element diff --git a/hive/readme/store_objects/hive_adapters.dart b/hive/readme/store_objects/hive_adapters.dart index 74a9d223..38064af7 100644 --- a/hive/readme/store_objects/hive_adapters.dart +++ b/hive/readme/store_objects/hive_adapters.dart @@ -1,6 +1,8 @@ import 'package:hive_ce/hive.dart'; import 'person.dart'; +part 'hive_adapters.hive.dart'; + @GenerateAdapters([AdapterSpec()]) // Annotations must be on some element // ignore: unused_element diff --git a/hive/readme/store_objects/hive_adapters.hive.dart b/hive/readme/store_objects/hive_adapters.hive.dart new file mode 100644 index 00000000..eb4cd482 --- /dev/null +++ b/hive/readme/store_objects/hive_adapters.hive.dart @@ -0,0 +1 @@ +part of 'hive_adapters.dart';