unkeepWhenDone() {
            this.removeWhenDone = true

            // check if the progress bar is finished
            let percent = Math.round(this.percentage * 100) / 100
            if (percent >= 100 && this.removeWhenDone) {
                this.finishAnimation()
            }
        }
/**
         * Set the bar to disappear when loading is complete. If complete, remove the progress bar.
         */
Set the bar to disappear when loading is complete. If complete, remove the progress bar.
Set the bar to disappear when loading is complete . If complete remove the progress bar .
unkeepWhenDone() {
            this.removeWhenDone = true
            let percent = Math.round(this.percentage * 100) / 100
            if (percent >= 100 && this.removeWhenDone) {
                this.finishAnimation()
            }
        }
unkeepWhenDone ( ) { this . removeWhenDone = true let percent = Math . round ( this . percentage * 100 ) / 100 if ( percent >= 100 && this . removeWhenDone ) { this . finishAnimation ( ) } }
Set the bar to disappear when loading is complete.
Set the bar to disappear when loading is complete .
// check if the progress bar is finished