encode static method

String encode(
  1. String data
)

Implementation

static String encode(String data) {
  final stringToBase64 = convert.utf8.fuse(convert.base64);
  final encrypted = stringToBase64.encode(data);
  return encrypted;
}