getBase64FromString static method

String getBase64FromString(
  1. String text
)
Converts to Base64

Implementation

static String getBase64FromString(String text) =>
    base64.encode(utf8.encode(text));