block method

  1. @override
bool block(
  1. FlightLanded msg,
  2. ReadStore read
)

Implementation

@override
bool block(FlightLanded msg, ReadStore read) {
  final stance = read(stageStance);
  final current = msg.flight.isMode ? stance.modeFlight : stance.flight;
  return current != msg.flight;
}