prepareInput static method
Process a MergeInput and return a valid file path or blob URL.
- MergeInput.path: Returns the path as-is.
- MergeInput.bytes: Creates a blob URL and returns it.
Implementation
static Future<String> prepareInput(MergeInput input) async {
switch (input.type) {
case MergeInputType.path:
return input.path!;
case MergeInputType.bytes:
return createBlobUrl(input.bytes!);
}
}