parameters property
UnmodifiableMapView<String, Parameter>
get
parameters
An ordered mapping of parameters’ names to the corresponding Parameter objects. Parameters appear in strict definition order, including keyword-only parameters.
Changed in version 3.7: Python only explicitly guaranteed that it preserved the declaration order of keyword-only parameters as of version 3.7, although in practice this order had always been preserved in Python 3.
Implementation
UnmodifiableMapView<String, Parameter> get parameters {
final PythonObjectInterface<PythonFfiCPythonBase, Pointer<PyObject>>
parameters = getAttributeRaw("parameters");
final PythonFunctionInterface<PythonFfiCPythonBase, Pointer<PyObject>>
itemGetter = parameters.getFunction("__getitem__");
return UnmodifiableMapView<String, Parameter>(
Map<String, Parameter>.fromEntries(
_parameterNames.map(
(String name) => MapEntry<String, Parameter>(
name,
Parameter.from(itemGetter(<Object?>[name])),
),
),
),
);
}