Skip to content

Commit c715942

Browse files
deps: updated analyzer >7.0.0 (#175)
1 parent ff2cf31 commit c715942

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openapi-generator/lib/src/extensions/type_methods.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:source_gen/source_gen.dart' show ConstantReader, TypeChecker;
99
extension TypeMethods on ConstantReader {
1010
/// Returns `true` if `this` represents a constant expression
1111
/// with type `dynamic`.
12-
bool get isDynamic => objectValue.type?.isDynamic ?? false;
12+
bool get isDynamic => objectValue.type is DynamicType;
1313

1414
/// Returns `true` is `this` represents a constant expression with
1515
/// type exactly `Iterable`.

openapi-generator/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
source_gen: '>=1.0.0 <=2.0.0'
1212
path: '>=1.0.0 <=2.0.0'
1313
openapi_generator_annotations: ^6.1.0
14-
analyzer: '>=2.0.0 <7.0.0'
14+
analyzer: '>5.12.0 <8.0.0'
1515
openapi_generator_cli: ^6.1.0
1616
crypto: '>=3.0.6 <=4.0.0'
1717
meta: '>=1.15.0 <=2.0.0'

0 commit comments

Comments
 (0)