please add
    if (progress != null) {
      progress();
    }