checks property Null safety

Iterable<AbstractCheck> checks

A list of functions that must return true for any descendant of this group to be executed. These are called before command invocation and can cause it to fail.

If you only want to apply a check to a specific command and not all descendants, see Command.singleChecks

Implementation

Iterable<AbstractCheck> get checks => [...?_parent?.checks, ..._checks];