getFieldName method

String? getFieldName(
  1. int index
)

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 or null when the index is invalid or the field name is empty.

Also see:

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;
}