Skip to content

Commit e078b61

Browse files
Merge pull request #1113 from zino-hofmann/fix-improve-analysis
Fix improve analysis
2 parents 20e5e3b + 9f45d44 commit e078b61

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

packages/graphql/lib/src/core/query_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class FetchMoreOptions {
324324
}
325325

326326
/// merge fetchMore result data with earlier result data
327-
typedef Map<String, dynamic>? UpdateQuery(
327+
typedef UpdateQuery = Map<String, dynamic>? Function(
328328
Map<String, dynamic>? previousResultData,
329329
Map<String, dynamic>? fetchMoreResultData,
330330
);

packages/graphql/lib/src/utilities/platform_html.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Future<WebSocketChannel> defaultConnectPlatform(
77
if (headers != null) {
88
print("The headers on the web are not supported");
99
}
10-
final webSocketChannel =
11-
await WebSocketChannel.connect(uri, protocols: protocols);
10+
final webSocketChannel = WebSocketChannel.connect(
11+
uri,
12+
protocols: protocols,
13+
);
1214
return webSocketChannel.forGraphQL();
1315
}

packages/graphql_flutter/pubspec.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ dev_dependencies:
2727
environment:
2828
sdk: '>=2.12.0 <3.0.0'
2929

30+
platforms:
31+
android:
32+
ios:
33+
linux:
34+
macos:
35+
web:
36+
windows:

0 commit comments

Comments
 (0)