import 'package:fpdart/fpdart.dart'; typedef Function1 = R Function(T t); extension EitherFutureX on Future> { Future> chain( Function1>> f, ) async { return (await this).fold(left, f); } }