encode method

String encode()

Implementation

String encode() {
  final bytes = utf8.encode(toString());
  return base64.encode(bytes);
}