base64 method

String base64({
  1. bool urlSafe = false,
  2. bool padding = true,
})

The message digest as a Base-64 string with no padding.

If urlSafe is true, the output will have URL-safe base64 alphabets. If padding is true, the output will have = padding at the end.

Implementation

String base64({bool urlSafe = false, bool padding = true}) =>
    toBase64(bytes, padding: padding, url: urlSafe);