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 Jun 24, 2024
1 parent e7ecb8d commit b9cb1ef
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 b9cb1ef

Please sign in to comment.