concat static method

String concat(
  1. Object? l,
  2. Object? r, {
  3. bool leftReal = false,
  4. bool rightReal = false,
  5. TypeConverter? typeConverter,
})

l + r when one side is a string: the other side is turned into text with text (leftReal and rightReal as in numeric).

SpelOperations.concat('a', 1); // a1
SpelOperations.concat(null, 'b'); // nullb

Implementation

static String concat(
  Object? l,
  Object? r, {
  bool leftReal = false,
  bool rightReal = false,
  TypeConverter? typeConverter,
}) => join(
  l is String ? l : text(l, real: leftReal, typeConverter: typeConverter),
  r is String ? r : text(r, real: rightReal, typeConverter: typeConverter),
);