typeName property
String
get
typeName
Implementation
String get typeName => switch (kind) {
SceneParamKind.string => 'String',
SceneParamKind.number => 'double',
SceneParamKind.color => 'SceneColor',
SceneParamKind.bool => 'bool',
// A record type, so `line.item` inside a repeat's closure is checked
// against the fields the data actually has.
SceneParamKind.list =>
items.isEmpty
? 'List<Object?>'
: 'List<({${[for (var e in items.first.entries) '${e.value is String ? 'String' : 'double'} ${e.key}'].join(', ')}})>',
};