weak_map
library
Classes
WeakContainer
A weak-container is similar, but not exactly, a weak-reference to some object.
Dart doesn't have real weak-references, so the best you can do here is to check
that some object is the same you had before.
WeakMap <K , V >
A WeakMap lets you garbage-collect its keys.
Please note: The key
can be garbage-collected, not the value
.
Functions
cache1state <Result , State1 > (F1_0 <Result , State1 > f )
→ F1_0 <Result , State1 >
Cache for 1 immutable state, and no parameters.
cache1state_0params_x <Result , State1 , Extra > (F1_0_x <Result , State1 , Extra > f )
→ F1_0_x <Result , State1 , Extra >
Cache for 1 immutable state, no parameters, and some extra information.
Note: The extra information is not used in any way to decide whether
the cache should be used/recalculated/evicted.
cache1state_1param <Result , State1 , Param1 > (F1_1 <Result , State1 , Param1 > f )
→ F1_1 <Result , State1 , Param1 >
Cache for 1 immutable state, and 1 parameter.
cache1state_2params <Result , State1 , Param1 , Param2 > (F1_2 <Result , State1 , Param1 , Param2 > f )
→ F1_2 <Result , State1 , Param1 , Param2 >
Cache for 1 immutable state, and 2 parameters.
cache2states <Result , State1 , State2 > (F2_0 <Result , State1 , State2 > f )
→ F2_0 <Result , State1 , State2 >
Cache for 2 immutable states, and no parameters.
cache2states_0params_x <Result , State1 , State2 , Extra > (F2_0_x <Result , State1 , State2 , Extra > f )
→ F2_0_x <Result , State1 , State2 , Extra >
Cache for 2 immutable states, no parameters, and some extra information.
Note: The extra information is not used in any way to decide whether
the cache should be used/recalculated/evicted.
cache2states_1param <Result , State1 , State2 , Param1 > (F2_1 <Result , State1 , State2 , Param1 > f )
→ F2_1 <Result , State1 , State2 , Param1 >
Cache for 2 immutable states, and 1 parameter.
cache2states_2params <Result , State1 , State2 , Param1 , Param2 > (F2_2 <Result , State1 , State2 , Param1 , Param2 > f )
→ F2_2 <Result , State1 , State2 , Param1 , Param2 >
Cache for 2 immutable states, and 2 parameters.
cache2states_3params <Result , State1 , State2 , Param1 , Param2 , Param3 > (F2_3 <Result , State1 , State2 , Param1 , Param2 , Param3 > f )
→ F2_3 <Result , State1 , State2 , Param1 , Param2 , Param3 >
Cache for 2 immutable states, and 3 parameters.
cache3states <Result , State1 , State2 , State3 > (F3_0 <Result , State1 , State2 , State3 > f )
→ F3_0 <Result , State1 , State2 , State3 >
Cache for 3 immutable states, and no parameters.
cache3states_0params_x <Result , State1 , State2 , State3 , Extra > (F3_0_x <Result , State1 , State2 , State3 , Extra > f )
→ F3_0_x <Result , State1 , State2 , State3 , Extra >
Cache for 3 immutable states, no parameters, and some extra information.
Note: The extra information is not used in any way to decide whether
the cache should be used/recalculated/evicted.
Typedefs
F1_0 <Result , State1 >
= R1_0 <Result > Function(State1 )
F1_0_x <Result , State1 , Extra >
= R1_0 <Result > Function(State1 , Extra )
F1_1 <Result , State1 , Param1 >
= R1_1 <Result , Param1 > Function(State1 )
F1_2 <Result , State1 , Param1 , Param2 >
= R1_2 <Result , Param1 , Param2 > Function(State1 )
F2_0 <Result , State1 , State2 >
= R2_0 <Result > Function(State1 , State2 )
F2_0_x <Result , State1 , State2 , Extra >
= R2_0 <Result > Function(State1 , State2 , Extra )
F2_1 <Result , State1 , State2 , Param1 >
= R2_1 <Result , Param1 > Function(State1 , State2 )
F2_2 <Result , State1 , State2 , Param1 , Param2 >
= R2_2 <Result , Param1 , Param2 > Function(State1 , State2 )
F2_3 <Result , State1 , State2 , Param1 , Param2 , Param3 >
= R2_3 <Result , Param1 , Param2 , Param3 > Function(State1 , State2 )
F3_0 <Result , State1 , State2 , State3 >
= R3_0 <Result > Function(State1 , State2 , State3 )
F3_0_x <Result , State1 , State2 , State3 , Extra >
= R3_0 <Result > Function(State1 , State2 , State3 , Extra )
R1_0 <Result >
= Result Function()
R1_1 <Result , Param1 >
= Result Function(Param1 )
R1_2 <Result , Param1 , Param2 >
= Result Function(Param1 , Param2 )
R2_0 <Result >
= Result Function()
R2_1 <Result , Param1 >
= Result Function(Param1 )
R2_2 <Result , Param1 , Param2 >
= Result Function(Param1 , Param2 )
R2_3 <Result , Param1 , Param2 , Param3 >
= Result Function(Param1 , Param2 , Param3 )
R3_0 <Result >
= Result Function()