setStackLevel static method
Sets stack level for an active modal/snackbar by ID.
Returns true if updated.
Implementation
static bool setStackLevel(String id, int stackLevel) {
if (!isModalActiveById(id)) return false;
updateParams(id: id, stackLevel: stackLevel);
return true;
}