getField method
- required String fieldName,
Returns the field definition of the given field name.
Parameters:
fieldName
— The field name.
Return Value: A Field.
Implementation
Field? getField({
required String fieldName,
}) {
final coreFieldName = _CString(fieldName);
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISFeatureLayerInfo_getField(
_handle,
coreFieldName.bytes,
errorHandler,
);
});
return Field._fromHandle(
objectHandle,
);
}