Encodes bytes using base64 encoding.
bytes
Shorthand for base64.encode. Useful if a local variable shadows the global base64 constant.
base64.encode
String base64Encode(List<int> bytes) => base64.encode(bytes);