inlineProgressBar method

InlineProgressBar inlineProgressBar(
  1. String prompt
)

Creates a one-line progress readout that mirrors the active theme.

final bar = terminice.inlineProgressBar('Downloading');
bar.show(current: 0, total: 100);
// ... do work ...
bar.show(current: 50, total: 100);
bar.clear();

The prompt is the label displayed next to the percentage.

Implementation

InlineProgressBar inlineProgressBar(String prompt) {
  return InlineProgressBar(prompt, theme: defaultTheme);
}