Merge pull request #3880 from pq/void_setters
Turn on `avoid_return_types_on_setters` and cleanup annotated setters.
This commit is contained in:
@@ -239,7 +239,7 @@ class WeatherWorld extends NodeWithSize {
|
||||
|
||||
WeatherType _weatherType = WeatherType.sun;
|
||||
|
||||
void set weatherType(WeatherType weatherType) {
|
||||
set weatherType(WeatherType weatherType) {
|
||||
if (weatherType == _weatherType)
|
||||
return;
|
||||
|
||||
@@ -331,7 +331,7 @@ class CloudLayer extends Node {
|
||||
return sprite;
|
||||
}
|
||||
|
||||
void set active(bool active) {
|
||||
set active(bool active) {
|
||||
double opacity;
|
||||
if (active) opacity = 1.0;
|
||||
else opacity = 0.0;
|
||||
@@ -368,7 +368,7 @@ class Sun extends Node {
|
||||
Sprite _sun;
|
||||
List<Ray> _rays;
|
||||
|
||||
void set active(bool active) {
|
||||
set active(bool active) {
|
||||
actions.stopAll();
|
||||
|
||||
double targetOpacity;
|
||||
@@ -473,7 +473,7 @@ class Rain extends Node {
|
||||
addChild(particles);
|
||||
}
|
||||
|
||||
void set active(bool active) {
|
||||
set active(bool active) {
|
||||
actions.stopAll();
|
||||
for (ParticleSystem system in _particles) {
|
||||
if (active) {
|
||||
@@ -542,7 +542,7 @@ class Snow extends Node {
|
||||
addChild(particles);
|
||||
}
|
||||
|
||||
void set active(bool active) {
|
||||
set active(bool active) {
|
||||
actions.stopAll();
|
||||
for (ParticleSystem system in _particles) {
|
||||
if (active) {
|
||||
|
||||
Reference in New Issue
Block a user