base64DecodeFile static method

Future<File> base64DecodeFile(
  1. String base64Str,
  2. File file
)

base64 转存文件

Implementation

static Future<File> base64DecodeFile(String base64Str, File file) async {
  List<int> bytes = base64.decode(base64Str);
  return await file.writeAsBytes(bytes);
}