AppContextをデータソースにしてVMにデータ叩き込むならFactory定義するんかな
@shibafu528 AndroidViewModelから派生するんや
@shibafu528 んでViewModel内部で
val context get()= getApplicationContext() as Context うろおぼ
@shibafu528 nullableとnonnullを使い分けたかったらcontextとrequireContextを別途定義するのがandroid ktx 風かしらね