ExternalField constructor
ExternalField({
- TitleFieldType? type,
- String? id,
- String? value,
Implementation
factory ExternalField({
TitleFieldType? type,
String? id,
String? value,
}) {
if (type == null && id != null) {
return ExternalField.id(id);
} else if (type == TitleFieldType.externalField && value != null) {
return ExternalField.id(value);
}
return const ExternalField._(id: null, type: null);
}