condition property

(bool Function(C channel, S signal)?) condition
final

When the channel broadcasts a ChannelSignal, the condition function is called. The condition must be returned a bool which determines whether or not the builder function will be invoked. condition is optional and if it isn't implemented, it will default to true.

Implementation

final bool Function(C channel, S signal)? condition;