wrap

open fun wrap(booleanSupplier: Supplier<Boolean>): DrawCommand<P>

Wrapper method that wraps this DrawCommand into another that checks if should execute or not the accept method.

Return

a new DrawCommand that wraps this one around the if checking

Parameters

booleanSupplier

a condition checker BooleanSupplier