Rxdart: Exception in Flutter 0.1.2 Observable' of function 'cast' is not a subtype of ...

Created on 15 Feb 2018  Â·  6Comments  Â·  Source: ReactiveX/rxdart

'(TypeToken) => Observable' of function 'cast' is not a subtype of signature type '() => Stream' of function 'cast'
[        ] I/flutter ( 5115): 
[        ] I/flutter ( 5115):   Stream < R > cast < R >() {
[        ] I/flutter ( 5115):   ^
[        ] I/flutter ( 5115): 'package:rxdart/src/observable.dart': error: line 1044: class 'Observable' overrides method 'cast' of super class or interface 'Stream' with incompatible parameters
[        ] I/flutter ( 5115):   Observable < S > cast < S >(TypeToken < S > typeToken) =>
[        ] I/flutter ( 5115):   ^
[        ] I/flutter ( 5115): #0      initAndRunApp (package:myproject/app.dart:33)
[        ] I/flutter ( 5115): <asynchronous suspension>
[        ] I/flutter ( 5115): #1      main.<anonymous closure> 
[✓] Flutter (on Mac OS X 10.13.3 17D47, locale en-AT, channel dev)
    • Flutter version 0.1.2 at /Users/zoechi/flutter/flutter
    • Framework revision 8a65872ef9 (29 hours ago), 2018-02-13 23:32:28 -0800
    • Engine revision 05c5f817eb
    • Tools Dart version 2.0.0-dev.22.0
    • Engine Dart version 2.0.0-edge.3c4dccbd46f152be9e1b6ca95c57357e8e48057c

Most helpful comment

That was it. Thanks.

All 6 comments

Thanks for the report!

@zoechi Was this fixed by the 0.16.0 release?

Yup, thanks a lot :)

Well actually this is happening to me with the latest version.

[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D47, locale en-PT) • Flutter version 0.1.5 • Framework revision 3ea4d06340 (7 days ago), 2018-02-22 11:12:39 -0800 • Engine revision ead227f118 • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

@crpr did you check in pubspec.lock that you're actually using the latest version?

That was it. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smkhalsa picture smkhalsa  Â·  6Comments

qiangjindong picture qiangjindong  Â·  3Comments

SAGARSURI picture SAGARSURI  Â·  4Comments

tapizquent picture tapizquent  Â·  3Comments

SAGARSURI picture SAGARSURI  Â·  9Comments