Add some new lint rules (#1117)

This commit is contained in:
Luan Nico
2021-11-18 10:35:10 -05:00
committed by GitHub
parent b89839c894
commit 03128170bd
16 changed files with 47 additions and 49 deletions

View File

@ -246,10 +246,10 @@ class SnowmanPart extends HitboxCircle {
SnowmanPart(double definition, Vector2 relativeOffset, Color hitColor)
: super(normalizedRadius: definition) {
this.relativeOffset.setFrom(relativeOffset);
hitPaint..color = startColor;
hitPaint.color = startColor;
onCollision = (Set<Vector2> intersectionPoints, HitboxShape other) {
if (other.component is ScreenCollidable) {
hitPaint..color = startColor;
hitPaint.color = startColor;
} else {
hitPaint.color = hitColor.withOpacity(0.8);
}