class WeatherScreen extends StatelessWidget {
  final String? city;
  WeatherScreen({this.city});

  @override
  Widget build(BuildContext context) {
    final weatherBloc = WeatherBloc();

    return Scaffold(
      appBar: AppBar(
        title: Text("Weather App"),
      ),
      body: Center(
        child: StreamBuilder<WeatherModel>(
          stream: weatherBloc.weatherStream,
          builder: (context, snapshot) {
            if (snapshot.hasData) {
              final weatherData = snapshot.data;
              return Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    "City: {weatherData.cityName}",
                    style: TextStyle(fontSize: 24),
                  ),
                  SizedBox(height: 16),
                  Text("{weatherData.temperature} °C",
                    style: TextStyle(fontSize: 24),
                  ),
                  SizedBox(height: 16),
                  Text(
                    "Description: ${weatherData.description}",
                    style: TextStyle(fontSize: 24),
                  ),
                ],
              );
            } else if (snapshot.hasError) {
              return Text("Failed to fetch weather data");
            } else {
              return CircularProgressIndicator();
            }
          },
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          weatherBloc.getWeatherData("London");
        },
        child: Icon(Icons.refresh),
      ),
    );
  }
}
? solve this problem in previous code : "class WeatherScreen extends StatelessWidget {
  final String? city;
  WeatherScreen({this.city});

  @override
  Widget build(BuildContext context) {
    final weatherBloc = WeatherBloc();

    return Scaffold(
      appBar: AppBar(
        title: Text("Weather App"),
      ),
      body: Center(
        child: StreamBuilder<WeatherModel>(
          stream: weatherBloc.weatherStream,
          builder: (context, snapshot) {
            if (snapshot.hasData) {
              final weatherData = snapshot.data;
              return Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    "City: {weatherData.cityName}",
                    style: TextStyle(fontSize: 24),
                  ),
                  SizedBox(height: 16),
                  Text("{weatherData.temperature} °C",
                    style: TextStyle(fontSize: 24),
                  ),
                  SizedBox(height: 16),
                  Text(
                    "Description: ${weatherData.description}",
                    style: TextStyle(fontSize: 24),
                  ),
                ],
              );
            } else if (snapshot.hasError) {
              return Text("Failed to fetch weather data");
            } else {
              return CircularProgressIndicator();
            }
          },
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          weatherBloc.getWeatherData("London");
        },
        child: Icon(Icons.refresh),
      ),
    );
  }
}
?solve this problem in previous code :"The argument type 'Stream<dyna • can't be assigned to the parameter type"?