QueryScopedValueRefPageOrWidgetScopedValueRefCacheExtensions extension

Provides an extension method for QueryScopedValueRef to perform caching.

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

on

Methods

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

Available on QueryScopedValueRef<PageOrWidgetScopedValueRef>, provided by the QueryScopedValueRefPageOrWidgetScopedValueRefCacheExtensions extension

Caches and stores the value returned by callback.