imageDisposeBugWorkaround property

ImageDisposeBugWorkaround imageDisposeBugWorkaround
getter/setter pair

Set the global policy as regards the various bugs in the dispose() methods for parts of the Flutter image system. As of Flutter 2.5.0, the worst of these bugs appear to have been fixed, so the library default was changed from disposeNeither to disposeBoth in jovial_svg version 1.0.7. However, in June 2023 a new Flutter bug was reported, resulting in the addition of the silentlyIgnoreErrors value.

See ImageDisposeBugWorkaround.

Implementation

static ImageDisposeBugWorkaround imageDisposeBugWorkaround =
    ImageDisposeBugWorkaround.disposeBoth;