alsoAsync method

Future<T> alsoAsync(
  1. FutureOr<void> block(
    1. T
    )
)

Implementation

Future<T> alsoAsync(FutureOr<void> Function(T) block) async {
  final value = await this;
  await block(value);

  return value;
}