stepFor method
The step a request opened now belongs to, and how it was found.
Implementation
(String step, String how)? stepFor() {
if (Zone.current[worldStepKey] case String step) return (step, 'zone');
var at = _lastAt;
if (_last case var step? when at != null) {
if (DateTime.now().difference(at) < window) return (step, 'window');
return null;
}
if (_started case var started?
when DateTime.now().difference(started) < startWindow) {
return ('$_prefix.0', 'window');
}
return null;
}