I took a class dart.io -> base64.dart, modified it a bit, and there you are
how to use:
var somestring = 'Hello dart!';
var base64string = Base64String.encode( somestring );
var mystring = Base64String.decode( base64string );
source on pastbin.com
source on gist.github.com