ParametrizedUnaryFunction<T> class abstract

Abstract factory of parametrized unary functions of type UnaryFunction<T>.

Constructors

ParametrizedUnaryFunction(DataType<T> dataType)
Abstract constructor of a parametrized function.
const
ParametrizedUnaryFunction.list(DataType<T> dataType, int count, UnaryFunction<T> function(List<T> params))
Provides parameters as a single positional list argument.
const
factory
ParametrizedUnaryFunction.map(DataType<T> dataType, List<Symbol> names, UnaryFunction<T> function(Map<Symbol, T> params))
Provides parameters as a single positional map.
const
factory
ParametrizedUnaryFunction.named(DataType<T> dataType, List<Symbol> names, Function function)
Provides parameters are named arguments.
const
factory
ParametrizedUnaryFunction.positional(DataType<T> dataType, int count, Function function)
Provides parameters as positional arguments.
const
factory
ParametrizedUnaryFunction.vector(DataType<T> dataType, int count, UnaryFunction<T> function(Vector<T> params))
Provides parameters as a single positional vector argument.
const
factory

Properties

count int
The number of parameters.
no setter
dataType DataType<T>
The underlying data type of the function.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Vector<T> params) UnaryFunction<T>
Binds a vector of parameter values params to a function using the selected strategy.
checkDefaultParam(Object? params, T? defaultParam, [Object? key]) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBindings(Vector<T> params) → dynamic
Converts the parameter values params to the underlying binding type.
toString() String
A string representation of this object.
inherited
toVector(Object? params, {T? defaultParam}) Vector<T>
Converts the parameter values params to a Vector.

Operators

operator ==(Object other) bool
The equality operator.
inherited