getFieldValue method
Returns the value for the field at index.
Parameters
index: Zero-based index of the requested field.
Returns
String?: The field value, ornullwhen the index is invalid or the value is empty.
Also see:
- fieldsCount — Get the total number of fields.
Implementation
String? getFieldValue(final int index) {
final OperationResult result = objectMethod(
pointerId,
'ContactInfo',
'getFieldValue',
args: index,
);
final String value = result['result'];
return value.isNotEmpty ? value : null;
}