<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>excite-okazi</author_name>
  <author_url>https://blog.hatena.ne.jp/excite-okazi/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
    <anon>Dart</anon>
  </categories>
  <description>こんにちは、エキサイトでアプリエンジニアをしている岡島です。 今回はDartを用いて、定期的に関数を実行したい時にどうすればいいか、Timerを用いた実装を紹介していきます。 はじめに Timerの基本的な使い方 一度だけ実行する場合 一定間隔ごとに実行する場合 Timerを停止する まとめ はじめに 開発をしていると、定期的にAPIからデータを取得したい場合のように、特定の関数を一定間隔おきに実行したいケースがあります。そのような時に、DartのTimerクラスを活用することができます。 Timerの基本的な使い方 一度だけ実行する場合 Duration(seconds: 〇〇)というように…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2024%2F11%2F20%2F133433&quot; title=&quot;【Flutter/Dart】定期的に関数を呼び出す方法：Timerを用いた実装 - エキサイト TechBlog.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-20 13:34:33</published>
  <title>【Flutter/Dart】定期的に関数を呼び出す方法：Timerを用いた実装</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2024/11/20/133433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
