sendToBack static method

bool sendToBack(
  1. String id, {
  2. int step = 1,
})

Sends an active overlay below all current overlays.

Implementation

static bool sendToBack(String id, {int step = 1}) {
  final current = getStackLevel(id);
  if (current == null) return false;
  final bottom = _controller.state
      .map((e) => _effectiveStackLevel(e))
      .fold<int>(current, (prev, next) => next < prev ? next : prev);
  return setStackLevel(id, bottom - (step < 1 ? 1 : step));
}