From a71334b0d0d5f2b67fbabd3eec329747ddbb77bc Mon Sep 17 00:00:00 2001 From: Igor Borges Date: Tue, 24 Dec 2019 21:42:56 -0300 Subject: [PATCH] Some more linter fix, and bump dart to 2.6 --- lib/generator.dart | 10 +++++----- pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/generator.dart b/lib/generator.dart index 75e8d4fe..e189f28b 100644 --- a/lib/generator.dart +++ b/lib/generator.dart @@ -190,10 +190,10 @@ ClassProperty _selectionToClassProperty( final field = (selection as FieldNode); - final String fieldName = field.name.value; - String alias = fieldName; + final fieldName = field.name.value; + var alias = fieldName; String aliasClassName; - final bool hasAlias = field.alias != null; + final hasAlias = field.alias != null; if (hasAlias) { alias = field.alias.value; aliasClassName = ReCase(alias).pascalCase; @@ -277,8 +277,8 @@ List _extractClasses( } if (selectionSet != null) { final classProperties = []; - final factoryPossibilities = Set(); - final mixins = Set(); + final factoryPossibilities = {}; + final mixins = {}; final queue = []; String classExtension; Iterable classImplementations = []; diff --git a/pubspec.yaml b/pubspec.yaml index 9d4a1389..06ef1f3d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,7 +8,7 @@ description: Build dart types from GraphQL schemas and queries (using Introspect homepage: https://github.com/comigor/artemis environment: - sdk: '>=2.0.0 <3.0.0' + sdk: '>=2.6.0 <3.0.0' dependencies: build_config: ^0.4.0