toBase64 property

String? toBase64

Convert String to base64

Implementation

String? get toBase64 {
  if (isNotNullOrEmpty) {
    Codec<String?, String> stringToBase64 = utf8.fuse(base64);
    return stringToBase64.encode(this);
  } else {
    return null;
  }
}