code: public final void setDimAmount(final float dimAmount) {
          Condition.INSTANCE.ensureAtLeast(dimAmount, 0, "The dim amount must be at least 0");
          Condition.INSTANCE.ensureAtMaximum(dimAmount, 1, "The dim amount must be at maximum 1");
          this.dimAmount = dimAmount;
          getWindow().getAttributes().dimAmount = dimAmount;
      }
docs: Sets the dim amount, which should be used to darken the area outside the bottom sheet.
  
  @param dimAmount
  The dim amount, which should be set, as a {@link Float} value. The dim amount must be
  at least 0 (fully transparent) and at maximum 1 (fully opaque)