<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wannabe-jellyfish</author_name>
  <author_url>https://blog.hatena.ne.jp/wannabe-jellyfish/</author_url>
  <blog_title>くらげになりたい。</blog_title>
  <blog_url>https://memory-lovers.blog/</blog_url>
  <categories>
    <anon>Flutter</anon>
    <anon>Dart</anon>
  </categories>
  <description>dartでこんな感じの 「条件に一致した最初の要素を取得する」 みたいなことをしたかった。 final item = items.firstWhere((v) =&gt; v.id == 1); 見つからないときはnullが返ってきてほしいけど、 条件に合うものがないと、StateErrorがthrowされる。。 orElseを使うのもいいけど、 final item = items.firstWhere( (v) =&gt; v.id == 1, orElse: () =&gt; null, ); いろいろ探してみたら、collectionの便利関数のパッケージがあったので、 試してみたときの備忘録(*´ω｀…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2023%2F10%2F04%2F072558&quot; title=&quot;Flutterのcollectionパッケージが便利だった - くらげになりたい。&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>2023-10-04 07:25:58</published>
  <title>Flutterのcollectionパッケージが便利だった</title>
  <type>rich</type>
  <url>https://memory-lovers.blog/entry/2023/10/04/072558</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
