Skip to content

Commit

Permalink
Silence unnecessary cast so devtools can work with web 0.5.0 in googl…
Browse files Browse the repository at this point in the history
…e3 (flutter#7179)

Note that 0.5.0 hasn't been released yet. After it rolls into google3,
we can publish and devtools can be updated to use it. This purely enables
that roll.
  • Loading branch information
srujzs authored Feb 8, 2024
1 parent 832d134 commit 19f29a4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class Notification {
late final web.Notification _impl;

static Future<String> requestPermission() async =>
// TODO(srujzs): This was needed in 0.4.0 as generics were not available.
// This is no longer true 0.5.0 onwards.
// ignore: unnecessary_cast
((await web.Notification.requestPermission().toDart) as JSString).toDart;

void close() {
Expand Down

0 comments on commit 19f29a4

Please sign in to comment.