encodeData method
Encodes the specified data
in base64 format.
Set wrap
to false in case you do not want to wrap lines.
Implementation
String encodeData(List<int> data, {bool wrap = true}) {
var base64Text = base64.encode(data);
if (wrap) {
base64Text = _wrapText(base64Text);
}
return base64Text;
}