seperateBy method

String seperateBy(
  1. String seperator
)

Implementation

String seperateBy(String seperator) {
  if (this.isNull) return '';
  String toRet = '';
  for (var i = 0; i < this.length; i++) {
    toRet += this[i];
    if (i != this.length - 1) {
      toRet += ' $seperator ';
    }
  }
  return toRet;
}