{"author_url":"https://blog.hatena.ne.jp/exRyusei1026/","provider_name":"Hatena Blog","blog_url":"https://tech.excite.co.jp/","categories":[],"published":"2023-03-10 15:35:44","blog_title":"\u30a8\u30ad\u30b5\u30a4\u30c8 TechBlog.","url":"https://tech.excite.co.jp/entry/2023/03/10/153544","width":"100%","title":"Flutter\u3067Retry\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f","description":"\u306f\u3058\u3081\u306b \u30a8\u30ad\u30b5\u30a4\u30c8\u682a\u5f0f\u4f1a\u793e\u306e\u9ad9\u91ce\u3067\u3059\u3002 \u4eca\u56de\u306fFlutter\u3067retry\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u305f\u306e\u3067\u3053\u306eretry\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u74b0\u5883 Flutter: 3.7.0 retry: 3.1.0 \u4f7f\u7528\u65b9\u6cd5 final r = RetryOptions(maxAttempts: 8); final response = await r.retry( () => http.get('https://example.com').timeout(Duration(seconds: 5)), retryIf: (e) => e is SocketException || e is Timeo\u2026","type":"rich","provider_url":"https://hatena.blog","image_url":null,"version":"1.0","author_name":"exRyusei1026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2023%2F03%2F10%2F153544\" title=\"Flutter\u3067Retry\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f - \u30a8\u30ad\u30b5\u30a4\u30c8 TechBlog.\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190"}