ArrowField constructor
- String name,
- ArrowDataType type, {
- bool nullable = true,
- Map<
String, String> metadata = const {}, - bool allowEmptyName = false,
Creates a field. Set allowEmptyName for unnamed standard Arrow fields.
The default retains the stricter binding-oriented constructor contract.
Implementation
ArrowField(
this.name,
this.type, {
this.nullable = true,
Map<String, String> metadata = const {},
bool allowEmptyName = false,
}) : metadata = _metadata(metadata) {
if (name.isEmpty && !allowEmptyName) {
throw ArgumentError.value(name, 'name', 'must not be empty');
}
}