<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
  </categories>
  <description>画面遷移とかでよくあるよね。一覧から行タップで詳細に遷移する系のやつ。商品一覧→商品詳細みたいなやつです。 Riverpodが提供するProviderにはfamilyという関数があり、Providerを初期化する際に任意の型の引数を与えることができる。今回は、StateNotifierProviderでありながら、autoDisposeもfamilyも使うというこんもりセットだった。 // 第1引数: 利用するStateNotifierの型 // 第2引数: 第1引数に入れたStateNotifierで管理するStateの型 // 第3引数: 管理するStateの初期化に必要なパラメータの型 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2021%2F10%2F27%2F113953&quot; title=&quot;RiverpodのProviderが管理するStateに引数を与えて初期化したい - Life is Really Short, Have Your Life!!&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>2021-10-27 11:39:53</published>
  <title>RiverpodのProviderが管理するStateに引数を与えて初期化したい</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2021/10/27/113953</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
