MemoizedFunction2<A1, A2, T> constructor
MemoizedFunction2<A1, A2, T> (
- DoubleArgumentFunction<
A1, A2, T> func, { - Map<
A1, Map< functionTable = const {},A2, T> >
Constructor:
The parameter functionTable
may be used to
initialize the function lookup table with certain
{function argument1: {function argument 2: function value pairs} }
entries.
Implementation
MemoizedFunction2(this.func, {Map<A1, Map<A2, T>> functionTable = const {}}) {
if (functionTable.isNotEmpty) {
_functionTable.addAll(functionTable);
}
}