encodeBase64 method

String? encodeBase64()

Encode text to Base64

Implementation

String? encodeBase64() {
  if (this == null) {
    return null;
  }
  return base64.encode(utf8.encode(this!));
}