toBase64 method

String toBase64()

Implementation

String toBase64() {
  if (this == null) {
    throw ArgumentError('string: $this');
  }
  return base64.encode(utf8.encode(this!));
}