setMockDelay method
设置模拟延迟
path 请求路径
delay 延迟时间
Implementation
void setMockDelay(String path, Duration delay) {
final existing = _mockConfigs[path];
if (existing != null) {
_mockConfigs[path] = _MockConfig(
response: existing.response,
error: existing.error,
delay: delay,
);
} else {
_mockConfigs[path] = _MockConfig(delay: delay);
}
}