toBase64 property
String
get
toBase64
? Convert Filepath to Base64
Implementation
String get toBase64 {
File image = File(this);
List<int> imageBytes = image.readAsBytesSync();
Logger('toBase64').info(imageBytes);
return base64Encode(imageBytes);
}