inlineSpinner method
Creates a lightweight spinner that stays on a single console line.
final spinner = terminice.inlineSpinner('Loading');
spinner.show(0);
// ... do work ...
spinner.show(1);
spinner.clear();
The prompt is the text displayed next to the spinner.
The style determines the visual appearance of the spinner (e.g., dots, bars, arcs).
Implementation
InlineSpinner inlineSpinner(
String prompt, {
SpinnerStyle style = SpinnerStyle.dots,
}) {
return InlineSpinner(
prompt,
style: style,
theme: defaultTheme,
);
}