VisionImage.deferred constructor
VisionImage.deferred(
- FutureOr<
VisionImage> produce()
A live stream frame whose pixels produce makes only if the task runs
the frame, when it starts the frame: a frame the task drops for a newer
one is never converted. produce returns the frame built with another
constructor, synchronously or not; an error it throws fails the frame,
and with it the task, as a failure inside Google's runtime does. Hold
on to whatever produce reads, such as a camera image, until then.
Live stream mode only: image and video mode run every image they are given, so they take the image itself and refuse this one.
Implementation
VisionImage.deferred(FutureOr<VisionImage> Function() produce)
: path = null,
pixels = null,
browserFrame = null,
width = null,
height = null,
format = null,
bytesPerRow = null,
_produce = produce;