call method

String call(
  1. String? helper,
  2. List attributes,
  3. Function? fn
)

calling helper with given name? attributes and parsing function

Implementation

String call(String? helper, List<dynamic> attributes, Function? fn) {
  if (helper == null || helper.isEmpty) {
    throw Exception('Helper name not specified');
  }

  if (_helpers == null || !_helpers!.containsKey(helper)) {
    throw Exception('Helper "$helper" is not registered');
  }

  return _helpers![helper]!(attributes, fn);
}