HoneyFunction typedef

HoneyFunction = Future<EvaluatedExpr> Function(HoneyContext ctx, Map<String, Expr> params)

Function type for custom functions.

If something goes wrong you should always throw a HoneyError to indicate whether the error is recoverable or not. Take the retry property of the parameters into account.

Implementation

typedef HoneyFunction = Future<EvaluatedExpr> Function(
  HoneyContext ctx,
  Map<String, Expr> params,
);