getField method

Field? getField(
  1. {required String fieldName}
)

Retrieves the field with the given name.

Parameters:

  • fieldName — Name of the field.

Return Value: A Field.

Implementation

Field? getField({required String fieldName}) {
  final coreFieldName = _CString(fieldName);
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureTable_getField(
        _handle, coreFieldName.bytes, errorHandler);
  });
  return Field._fromHandle(objectHandle);
}