Closed wayne900204 closed 3 years ago
https://github.com/ReactiveX/rxdart/blob/master/example/flutter/github_search/lib/search_bloc.dart#L37-L43
if i change to
static Stream<SearchState> _search(String term, GithubApi api) => term.isEmpty ? Stream.value(SearchNoTerm()) : Rx.fromCallable(() => api.search(term).catchError((e) { print(e.toString()); })) .map((result) => result.isEmpty ? SearchEmpty() : SearchPopulated(result)) .startWith(SearchLoading()) .onErrorReturn(SearchError());
It will get an exception
flutter: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Map<String, Object>'
My Flutter environment is it
environment: sdk: ">=2.12.0 <3.0.0"
https://github.com/ReactiveX/rxdart/blob/master/example/flutter/github_search/lib/search_bloc.dart#L37-L43
if i change to
It will get an exception
My Flutter environment is it