let<R> method

Future<R> let<R>(
  1. R block(
    1. T self
    )
)

Implementation

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