【发布时间】:2020-07-12 17:13:35
【问题描述】:
var file = await DefaultCacheManager().getSingleFile(url);
我无法使用此行获取 url 的文件路径
帮帮我
Compiler message:
lib/main.dart:59:22: Error: The method 'DefaultCacheManager' isn't defined for the class 'WallpaperImages'.
- 'WallpaperImages' is from 'package:flutter_app_sample/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing method, or defining a method named 'DefaultCacheManager'.
var file = await DefaultCacheManager().getSingleFile(url);
^^^^^^^^^^^^^^^^^^^
【问题讨论】: