perform method

void perform({
  1. OnFutureWaitCall? call,
})

执行任务

Implementation

void perform({OnFutureWaitCall? call}) {
  Future.wait(_task, cleanUp: (successValue) {
    if (call != null) {
      call(false, []);
    }
  }).then((responses) {
    if (call != null) {
      call(true, responses);
    }
  });
}