HaveResourceImageInput class

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.

{@endtemplate}

Inheritance

Constructors

HaveResourceImageInput({required ImageInput innerInput, Future<void> onRelease()?})
input is the input data of ImageInput. onRelease is the function to release the resources.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
innerInput ImageInput
The input data of ImageInput.
final
length int
The length of the input data.
no setteroverride
onRelease → (Future<void> Function()?)
The function to release the resources.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exists() bool
Check if the input data exists.
override
getRange(int start, int end) List<int>
Get a range of bytes from the input data.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() Future<void>
Release the resources.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited