typeName static method
Returns a human-readable type name for value.
Lists report Array and maps report Table; every TOML primitive maps
to its Dart-facing name.
Implementation
static String typeName(Object? value) {
return switch (value) {
null => 'null',
bool() => 'bool',
int() => 'int',
BigInt() => 'int',
double() => 'double',
String() => 'String',
List() => 'Array',
Map() => 'Table',
TomlLocalDate() => 'LocalDate',
TomlLocalDateTime() => 'LocalDateTime',
TomlLocalTime() => 'LocalTime',
TomlOffsetDateTime() => 'OffsetDateTime',
TomlDateTime() => 'DateTime',
_ => 'Object',
};
}