📅  最后修改于: 2022-03-11 14:48:08.677000             🧑  作者: Mango
StreamController<...> selectedLocation =
StreamController<...>.broadcast();
@override
void initState() {
final applicationBloc =
Provider.of(context, listen: false);
locationSubScription =
applicationBloc.selectedLocation.stream.listen((place) {
_goToPlace(place);
});