constant<T, U> function
- @useResult
- T x
The Constant function.
Returns a function whose output value is the same for every input value.
Implementation
@useResult
T Function(U) constant<T, U>(T x) => (_) => x;
The Constant function.
Returns a function whose output value is the same for every input value.
@useResult
T Function(U) constant<T, U>(T x) => (_) => x;