<?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>
  </categories>
  <description>こんにちは、エキサイト株式会社でアプリエンジニアをしている岡島です。今回はsealedクラスを用いて複数の型を持つリストを表現する方法について共有したいと思います。 複数の型を持つリストの表現 実装例 sealedクラスを用いた型の定義 投稿、広告、おすすめユーザー用のウィジェットの用意 sealedクラスのパターンマッチを利用したリストの表示 実際の画面 sealedクラスの利点 まとめ 複数の型を持つリストの表現 例えば、SNSのフィード画面のように投稿、広告、おすすめユーザーなどをまとめてリストで持ちたいときはどうすればいいか、sealedクラスを用いた実装を見ていきたいと思います。 実…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2024%2F08%2F30%2F155333&quot; title=&quot;【Flutter/Dart】sealedクラスを用いて、SNSフィード画面のような複数の型を持つリストの表現する - エキサイト 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>https://cdn-ak.f.st-hatena.com/images/fotolife/e/excite-okazi/20240828/20240828171454.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-30 15:53:33</published>
  <title>【Flutter/Dart】sealedクラスを用いて、SNSフィード画面のような複数の型を持つリストの表現する</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2024/08/30/155333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
