|
|
@ -14,7 +14,6 @@ class SparkyBumperBlinkingBehavior extends TimerComponent
|
|
|
|
void _onNewState(SparkyBumperState state) {
|
|
|
|
void _onNewState(SparkyBumperState state) {
|
|
|
|
switch (state) {
|
|
|
|
switch (state) {
|
|
|
|
case SparkyBumperState.active:
|
|
|
|
case SparkyBumperState.active:
|
|
|
|
timer.stop();
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SparkyBumperState.inactive:
|
|
|
|
case SparkyBumperState.inactive:
|
|
|
|
timer
|
|
|
|
timer
|
|
|
@ -34,6 +33,7 @@ class SparkyBumperBlinkingBehavior extends TimerComponent
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void onTick() {
|
|
|
|
void onTick() {
|
|
|
|
super.onTick();
|
|
|
|
super.onTick();
|
|
|
|
|
|
|
|
timer.stop();
|
|
|
|
parent.bloc.onBlinked();
|
|
|
|
parent.bloc.onBlinked();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|