Using CacheImage.network with the incorrect image url,
void validate() { rootBundle.load(filePath).then((value) { setState(() { validator = true; }); }).catchError((_) { setState(() { validator = false; }); }); }
The value of validator always is true, and the placeholder image is not shown.
Using CacheImage.network with the incorrect image url,
void validate() { rootBundle.load(filePath).then((value) { setState(() { validator = true; }); }).catchError((_) { setState(() { validator = false; }); }); }
The value of validator always is true, and the placeholder image is not shown.