getFieldName method
Returns the display name (short description) for the field at index.
The returned string depends on the SDK language setting and is
typically used for UI presentation. When no field exists at index
the method returns null.
Parameters
index: Zero-based index of the requested field.
Returns
String?: The localized field name ornullwhen the index is invalid or the field name is empty.
Also see:
- fieldsCount — Get the total number of fields.
Implementation
String? getFieldName(final int index) {
final OperationResult result = objectMethod(
pointerId,
'ContactInfo',
'getFieldName',
args: index,
);
final String name = result['result'];
return name.isNotEmpty ? name : null;
}