ConditionalTask constructor

ConditionalTask(
  1. {@required bool predicate(
      ),
    1. AnimationTaskCallback onStart,
    2. AnimationTaskCallback onComplete}
    )

    Implementation

    ConditionalTask({
      @required this.predicate,
      AnimationTaskCallback onStart,
      AnimationTaskCallback onComplete,
    })  : assert(predicate != null, "Please provide a 'predicate'."),
          super(onStart: onStart, onComplete: onComplete);