I registered my ObjectBox Store as a LazySingleton with this method
setupLocatorAdditions() async {
stackedAdditionLocator.registerLazySingletonAsync<Store>(() => openStore());
}
Which worked fine. But after multiple rebuilds from the BuildRunner the ObjectBox Generator threw this error, regardless of whether I removed the singleton registration and reran it.
lib/objectbox.g.dart:1341:67: Error: No named parameter with the name 'lazy'.
weekDays: const fb.ListReader<int>(fb.Int8Reader(), lazy: false)
^^^^
../../Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/objectbox-1.1.1/lib/flatbuffers/flat_buffers.dart:994:9: Context: Found this candidate, but the arguments don't match.
const ListReader(this._elementReader);
^^^^^^^^^^
lib/objectbox.g.dart:1343:68: Error: No named parameter with the name 'lazy'.
locations: const fb.ListReader<int>(fb.Int8Reader(), lazy: false)
^^^^
../../Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/objectbox-1.1.1/lib/flatbuffers/flat_buffers.dart:994:9: Context: Found this candidate, but the arguments don't match.
const ListReader(this._elementReader);
^^^^^^^^^^
2
FAILURE: Build failed with an exception.