FutureOr<T> transform(FutureOr<I> input) async { while (input is Future) { input = await input; } return _transformer(input); }