From 3879f18e7df5efc114349b8102507413e6db49d8 Mon Sep 17 00:00:00 2001 From: Maina Wycliffe Date: Mon, 11 Nov 2019 16:24:18 +0300 Subject: [PATCH] fix: individually suppress "deprecated_member_use_from_same_package" only This is because there is no way to do at analysis_option.yaml --- packages/graphql_flutter/analysis_options.yaml | 6 ------ packages/graphql_flutter/lib/src/widgets/mutation.dart | 1 + packages/graphql_flutter/lib/src/widgets/query.dart | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 packages/graphql_flutter/analysis_options.yaml diff --git a/packages/graphql_flutter/analysis_options.yaml b/packages/graphql_flutter/analysis_options.yaml deleted file mode 100644 index a1dc66d51..000000000 --- a/packages/graphql_flutter/analysis_options.yaml +++ /dev/null @@ -1,6 +0,0 @@ -include: package:pedantic/analysis_options.yaml - -analyzer: - exclude: - - test/_data/** - - lib/**/** diff --git a/packages/graphql_flutter/lib/src/widgets/mutation.dart b/packages/graphql_flutter/lib/src/widgets/mutation.dart index 7c26de854..11e180301 100644 --- a/packages/graphql_flutter/lib/src/widgets/mutation.dart +++ b/packages/graphql_flutter/lib/src/widgets/mutation.dart @@ -36,6 +36,7 @@ class MutationState extends State { ObservableQuery observableQuery; WatchQueryOptions get _options => WatchQueryOptions( + // ignore: deprecated_member_use document: widget.options.document, documentNode: widget.options.documentNode, variables: widget.options.variables, diff --git a/packages/graphql_flutter/lib/src/widgets/query.dart b/packages/graphql_flutter/lib/src/widgets/query.dart index 887a8fd32..d21e4a1ca 100644 --- a/packages/graphql_flutter/lib/src/widgets/query.dart +++ b/packages/graphql_flutter/lib/src/widgets/query.dart @@ -39,6 +39,7 @@ class QueryState extends State { final QueryOptions options = widget.options; return WatchQueryOptions( + // ignore: deprecated_member_use document: options.document, documentNode: options.documentNode, variables: options.variables,