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