Skip to content

Commit

Permalink
fix: individually suppress "deprecated_member_use_from_same_package" …
Browse files Browse the repository at this point in the history
…only

This is because there is no way to do at analysis_option.yaml
  • Loading branch information
mainawycliffe committed Nov 11, 2019
1 parent 9216976 commit 3879f18
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/graphql_flutter/analysis_options.yaml

This file was deleted.

1 change: 1 addition & 0 deletions packages/graphql_flutter/lib/src/widgets/mutation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class MutationState extends State<Mutation> {
ObservableQuery observableQuery;

WatchQueryOptions get _options => WatchQueryOptions(
// ignore: deprecated_member_use
document: widget.options.document,
documentNode: widget.options.documentNode,
variables: widget.options.variables,
Expand Down
1 change: 1 addition & 0 deletions packages/graphql_flutter/lib/src/widgets/query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class QueryState extends State<Query> {
final QueryOptions options = widget.options;

return WatchQueryOptions(
// ignore: deprecated_member_use
document: options.document,
documentNode: options.documentNode,
variables: options.variables,
Expand Down

0 comments on commit 3879f18

Please sign in to comment.