registerFunction method

void registerFunction(
  1. String name,
  2. ExcelFunction fn
)

Registers a custom fn under name (case-insensitive) for formulas in this workbook. Re-registering a name replaces it. A custom function never shadows a built-in of the same name.

Implementation

void registerFunction(String name, ExcelFunction fn) {
  _excel._customFunctions[name.toUpperCase()] = fn;
}