build method

String build([
  1. Map<String, dynamic>? variables
])

Implementation

String build([Map<String, dynamic>? variables]) {
  var built = StringBuffer();

  for (var e in _values) {
    if (e is MessageVariable) {
      built.write(e.build(variables));
    } else if (e is MessageBlock) {
      built.write(e.build(variables));
    } else {
      built.write(e);
    }
  }

  return built.toString();
}