Skip to content

Commit

Permalink
chore: ignore deprecation in worker_bee_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Jul 1, 2024
1 parent b286b3d commit 7cca276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class WorkerHiveGenerator extends GeneratorForAnnotation<WorkerHive> {
..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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class WorkerBeeGenerator extends GeneratorForAnnotation<WorkerBee> {
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.');
}
Expand Down

0 comments on commit 7cca276

Please sign in to comment.