computeOperation method

  1. @override
dynamic computeOperation(
  1. Object? json
)
override

Implementation

@override
dynamic computeOperation(Object? json) {
  var s = TAsString(subParameters(2)).transform(json) as String;

  var delimiter = getParameter(0, null, (v) => parseString(v)!);
  var limit = getParameter(1, null, (v) => parseInt(v)!);

  var pattern =
      delimiter != null ? RegExp(delimiter) : _LIST_DELIMITER_PATTERN;

  return split(s, pattern, limit);
}