mount method

CliLive mount(
  1. Widget widget, {
  2. bool last = false,
})

Mounts widget in the region below what is live already, until CliLive.remove; what is committed meanwhile goes above it.

With last it is kept at the bottom of the region: what is mounted later without it goes above it, as a prompt asked while a progress runs does.

Implementation

CliLive mount(Widget widget, {bool last = false}) {
  final live = CliLive._(this, _nextLive++, widget, last: last);
  if (!_ended) {
    _live.add(live);
    _changed();
  }
  return live;
}