workConfig top-level property
全局默认使用的WorkConfig配置
Implementation
WorkConfig workConfig = WorkConfig(
dio: Dio(
BaseOptions(
connectTimeout: const Duration(seconds: 10),
receiveTimeout: const Duration(seconds: 30),
sendTimeout: const Duration(seconds: 30),
contentType: 'application/x-www-form-urlencoded',
),
),
);