paramKind property
SceneParamKind?
get
paramKind
The parameter kind a binding to this property must have, or null when no parameter can fill it — a choice, a list of sizes.
Implementation
SceneParamKind? get paramKind => switch (kind) {
ScenePropKind.number ||
ScenePropKind.size ||
ScenePropKind.edges => SceneParamKind.number,
ScenePropKind.string => SceneParamKind.string,
ScenePropKind.boolean => SceneParamKind.bool,
ScenePropKind.color => SceneParamKind.color,
// No parameter can hold one of these. That is not the same as "nothing
// can": a token holds a text style, and `sceneBindSources` is where the
// two questions are asked apart.
ScenePropKind.integer ||
ScenePropKind.sizes ||
ScenePropKind.layers ||
ScenePropKind.axes ||
ScenePropKind.choice ||
ScenePropKind.style ||
ScenePropKind.args => null,
};