public ScrollAwareImageProvider( DisposableBuildContext context = null, ImageProvider <T> imageProvider = null ) { D.assert(context != null); D.assert(imageProvider != null); this.context = context; this.imageProvider = imageProvider; }
public override void initState() { base.initState(); WidgetsBinding.instance.addObserver(this); _scrollAwareContext = new DisposableBuildContext <State <Image> >(this); }