Why does import 'dart:convert' show BASE64; give me an error?
import 'dart:convert' show BASE64;
var output = BASE64.encode(digest.bytes)
Undefined name 'BASE64'.
Thanks
Why does import 'dart:convert' show BASE64; give me an error?
import 'dart:convert' show BASE64;
var output = BASE64.encode(digest.bytes)
Undefined name 'BASE64'.
Thanks
In Dart 2 such SCREAMING_CASE constant names were changed to lowerCamelCase
Just change BASE64 to base64. Similar with JSON -> json and a few more.