also method

T? also(
  1. void action(
    1. T?
    )
)

Executes the given action if the value is null.

Returns the result of the action or the value if the value is not null.

Implementation

T? also(void Function(T?) action) {
  action(this);
  return this;
}