namespace Syntriax.Modules.Trigger
{
public static class ITriggerExtensions
{
///
/// Checks if the provided parameter ITrigger is toggled, if the parameter is null returns the nullValue parameter
///
/// ITrigger to be checked if toggled or not
/// The value that will be returned if toggleState is null. Default value: true
/// ITrigger's toggle value, or if null return nullValue parameter
public static bool IsTriggeredNullChecked(this ITrigger trigger, bool nullValue = true)
=> trigger == null ? nullValue : trigger.IsTrigerred;
}
}