MemoizedFunction2<A1, A2, T> constructor

MemoizedFunction2<A1, A2, T>(
  1. DoubleArgumentFunction<A1, A2, T> func, {
  2. Map<A1, Map<A2, T>> functionTable = const {},
})

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);
  }
}