also method

  1. @experimental
T also(
  1. void block(
    1. T
    )
)

Calls the specified function block with this value as its argument and returns this value.

Implementation

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
@experimental
T also(void Function(T) block) {
  block(this as T);
  return this as T;
}