runIf method

void runIf(
  1. void action(
    1. T wrapped
    )
)

Runs action if setIf has been called

Implementation

void runIf(void Function(T wrapped) action) {
  final stack = Trace.current();
  verbose(() => 'runIf $stack');
  if (wrapped != null) {
    action(wrapped as T);
  }
}