flame_signals library

Classes

FlameSignal
FlameSignal is the base class for signals. Extend this class to define your in game signals. This allows you to define any payload that needs to be send on a particular game signal

Mixins

FlameSendSignals
Use this mixin on Components that only need to send signal but do not need to react to signals.
FlameSignalListenable
This mixin provides ability for a Component to react to a game signal. The addSignal method is also provided to add signals to the signal stream.
HasSignals
HasSignals mixin provides a Stream for sending signals between Flame Components. This mixin must be added to the top-level game instance.

Typedefs

FlameSignalHandler<S> = void Function(S signal)
A signal handler is responsible for reacting to an incoming FlameSignal