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.
constfactory
-
ParametrizedUnaryFunction.map(DataType<
T> dataType, List<Symbol> names, UnaryFunction<T> function(Map<Symbol, T> params)) -
Provides parameters as a single positional map.
constfactory
-
ParametrizedUnaryFunction.named(DataType<
T> dataType, List<Symbol> names, Function function) -
Provides parameters are named arguments.
constfactory
-
ParametrizedUnaryFunction.positional(DataType<
T> dataType, int count, Function function) -
Provides parameters as positional arguments.
constfactory
-
ParametrizedUnaryFunction.vector(DataType<
T> dataType, int count, UnaryFunction<T> function(Vector<T> params)) -
Provides parameters as a single positional vector argument.
constfactory
Properties
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