PageOrWidgetScopedValueRefCacheExtensions extension

Provides an extension method for PageOrWidgetScopedValueRef to perform caching.

キャッシュを行うためのPageOrWidgetScopedValueRef用の拡張メソッドを提供します。

on

Methods

cache<T>(T callback(QueryScopedValueRef<PageOrWidgetScopedValueRef> ref), {List<Object> keys = const [], Object? name}) → T

Available on PageOrWidgetScopedValueRef, provided by the PageOrWidgetScopedValueRefCacheExtensions extension

Caches and stores the value returned by callback.