WeatherWidget constructor

const WeatherWidget({
  1. Key? key,
  2. required dynamic location,
  3. required dynamic weatherBloc,
  4. double? height,
  5. double? width,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. MainAxisAlignment? alignment,
  9. Color? locationColor,
  10. Color? color,
  11. Color? temperatureColor,
  12. BorderRadiusGeometry? borderRadius,
  13. Color? weatherTextColor,
  14. Color? activeColor,
  15. BorderRadiusGeometry? activeBorderRadius,
  16. TextStyle? locationTextStyle,
  17. TextStyle? weatherDetailsTextStyle,
  18. TextStyle? temperatureTextStyle,
  19. TextStyle? weekdayTextStyle,
  20. TextStyle? maxTemperatureTextStyle,
  21. TextStyle? minTemperatureTextStyle,
  22. TextStyle? temperatureScaleTextStyle,
})

Implementation

const WeatherWidget({
  Key? key,
  required location,
  required weatherBloc,
  this.height,
  this.width,
  this.padding,
  this.margin,
  this.alignment,
  this.locationColor,
  this.color,
  this.temperatureColor,
  this.borderRadius,
  this.weatherTextColor,
  this.activeColor,
  this.activeBorderRadius,
  this.locationTextStyle,
  this.weatherDetailsTextStyle,
  this.temperatureTextStyle,
  this.weekdayTextStyle,
  this.maxTemperatureTextStyle,
  this.minTemperatureTextStyle,
  this.temperatureScaleTextStyle,
})  : _location = location,
      _weatherBloc = weatherBloc,
      super(key: key);