stringToBase64 static method

String stringToBase64({
  1. required String value,
})

convert string or text ro base64

Implementation

static String stringToBase64({
  required String value,
}) {
  return base64.encode(utf8.encode(value));
}