delayCall method Null safety

DelayedCall delayCall(
  1. void action(
      ),
    1. num delay
    )

    This is a convenience method that creates a DelayedCall and adds it to this juggler. See DelayedCall for more details.

    Example:

    // Delay the call of action by 5.0 seconds.
    juggler.delayCall(action, 5.0);
    

    Implementation

    DelayedCall delayCall(void Function() action, num delay) {
      final delayedCall = DelayedCall(action, delay);
      add(delayedCall);
      return delayedCall;
    }