Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Dec 2, 2023
1 parent 836b2fe commit a2d0721
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
import 'package:async/async.dart';

extension StreamQueueOfNullableObjectExtension on StreamQueue<Object?> {
/// When run under dart2wasm, JSON numbers are always returned as [double].
Future<int> get nextAsInt async => ((await next) as num).toInt();
}

0 comments on commit a2d0721

Please sign in to comment.