Skip to content

Commit

Permalink
🚨 silence deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed May 20, 2023
1 parent fb294f8 commit 1d74be6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ class ChopperGenerator extends GeneratorForAnnotation<chopper.ChopperApi> {
_typeChecker(Map).isExactlyType(type) ||
_typeChecker(BuiltMap).isExactlyType(type)) return type;

// ignore: deprecated_member_use
if (generic.isDynamic) return null;

if (_typeChecker(List).isExactlyType(type) ||
Expand Down

0 comments on commit 1d74be6

Please sign in to comment.