delegateInput method

  1. @override
Future<HaveResourceImageInput> delegateInput()

When asynchronous reading is not supported, an input for real reading will be cached in memory(web) or file(dart.io).

Implementation

@override
Future<HaveResourceImageInput> delegateInput() async {
  final input = await createDelegateInput(uri);
  final delegate = HaveResourceImageInput(
    innerInput: input.input,
    onRelease: () async {
      await input.onRelease();
    },
  );
  return delegate;
}