Skip to content

Commit 493ef75

Browse files
remove cast function and use where type
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 649c9e2 commit 493ef75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphql/lib/src/links/websocket_link/websocket_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ class SocketClient {
474474

475475
dataErrorComplete
476476
.where((message) => message is SubscriptionNext)
477-
.cast<SubscriptionNext>()
477+
.whereType<SubscriptionNext>()
478478
.listen((message) => response.add(
479479
parse(message.toJson()),
480480
));

0 commit comments

Comments
 (0)