HaveResourceImageInput constructor

const HaveResourceImageInput({
  1. required ImageInput innerInput,
  2. Future<void> onRelease()?,
})

There are resources in these classes that need to be released.

This class is a wrapper class that will automatically release resources after use. Once released, many resources are no longer effective.

input is the input data of ImageInput. onRelease is the function to release the resources.

Implementation

const HaveResourceImageInput({
  required this.innerInput,
  this.onRelease,
});