fromBase64 property

String? get fromBase64

Decode base64 string (if valid)

Implementation

String? get fromBase64 {
  try {
    return utf8.decode(base64Decode(this));
  } catch (_) {
    return null; // Not valid base64
  }
}