concat static method
String
concat(
- Object? l,
- Object? r, {
- bool leftReal = false,
- bool rightReal = false,
- 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),
);