diff --git a/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart b/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart index 334e63d758..bf243b9603 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart @@ -39,6 +39,8 @@ class WorkerHiveGenerator extends GeneratorForAnnotation { ..assignment = literalMap( { for (final workerType in workers) + // TODO(Jordan-Nelson): remove use of `withNullability` when min dart version is 3.4 or higher + // ignore: deprecated_member_use workerType.getDisplayString(withNullability: false): Block.of([ (workerType.accept(_symbolVisitor) as TypeReference) diff --git a/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart b/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart index 123931d94f..9591004095 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart @@ -56,6 +56,8 @@ class WorkerBeeGenerator extends GeneratorForAnnotation { final requestTypeEl = requestType.element; if (requestTypeEl == null || requestTypeEl is! ClassElement) { final requestTypeName = + // TODO(Jordan-Nelson): remove use of `withNullability` when min dart version is 3.4 or higher + // ignore: deprecated_member_use requestType.getDisplayString(withNullability: true); throw ArgumentError('Could not find element for $requestTypeName.'); }