AnimatedImageProvider.fromRawData constructor

AnimatedImageProvider.fromRawData(
  1. Future<ByteData> onDataRequest(), {
  2. String? id,
  3. Function? onError,
})

Implementation

AnimatedImageProvider.fromRawData(Future<ByteData> Function() onDataRequest,
    {String? id, Function? onError})
    : _data = RawData(onDataRequest, AsyncErrorHandler(onError)),
      id = id ?? _generateId();