also<R> method

Future<T?> also<R>(
  1. R block(
    1. T self
    )
)

Implementation

Future<T?> also<R>(R block(T self)) async {
  if (this == null) {
    return Future.value(null);
  } else {
    block(await this!);
    return this;
  }
}