diff --git a/openapi-generator/lib/src/extensions/type_methods.dart b/openapi-generator/lib/src/extensions/type_methods.dart index b1e8bca..ab751bc 100644 --- a/openapi-generator/lib/src/extensions/type_methods.dart +++ b/openapi-generator/lib/src/extensions/type_methods.dart @@ -9,7 +9,7 @@ import 'package:source_gen/source_gen.dart' show ConstantReader, TypeChecker; extension TypeMethods on ConstantReader { /// Returns `true` if `this` represents a constant expression /// with type `dynamic`. - bool get isDynamic => objectValue.type?.isDynamic ?? false; + bool get isDynamic => objectValue.type is DynamicType; /// Returns `true` is `this` represents a constant expression with /// type exactly `Iterable`. diff --git a/openapi-generator/pubspec.yaml b/openapi-generator/pubspec.yaml index 3f72286..9246ff9 100755 --- a/openapi-generator/pubspec.yaml +++ b/openapi-generator/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: source_gen: '>=1.0.0 <=2.0.0' path: '>=1.0.0 <=2.0.0' openapi_generator_annotations: ^6.1.0 - analyzer: '>=2.0.0 <7.0.0' + analyzer: '>5.12.0 <8.0.0' openapi_generator_cli: ^6.1.0 crypto: '>=3.0.6 <=4.0.0' meta: '>=1.15.0 <=2.0.0'