        }
        paddingCount++;
        &#47;&#47; It could have been an escaped equals (%3D).
        if (originalChar == equals) continue;
      }
      if (value != _Base64Decoder._invalid) {
        buffer ??= StringBuffer();
        buffer.write(source.substring(sliceStart, sliceEnd));
        buffer.writeCharCode(char);
        sliceStart = i;
        continue;
      }
    }
    throw FormatException(&quot;Invalid base64 data&quot;, source, sliceEnd);
  }
  if (buffer != null) {
    buffer.write(sou