registerMacro method
Registers a query macro.
Macros provide a way to extend the query builder with custom, reusable logic.
name is the name of the macro.
macro is the callback function that implements the macro's logic.
Implementation
void registerMacro(String name, QueryMacroCallback macro) =>
scopeRegistry.addMacro(name, macro);