identity<T> function

T identity<T>(
  1. T value
)

A functions that directly returns whatever was given to it.

Implementation

T identity<T>(T value) => value;