Completes the progress bar and hides the display.
Sending a percentage of 100 has the same effect.
No further progress updates can be sent after this.
Returns void
error
error(error: any): void
Turns the progress display into an error display for the given error or message.
Use if the operation failed.
No further progress updates can be sent after this.
Completes the progress bar and hides the display. Sending a percentage of 100 has the same effect. No further progress updates can be sent after this.