toBase64 static method

String toBase64(
  1. String str
)

字符串转 base64

Implementation

static String toBase64(String str) => _base64Codec.encode(str);