I try edit function in sample Manage features from arcgis-maps-sdk-flutter-samples by add
feature.attributes['inspemail'] = null; like this
Future<void> updateAttribute(Feature feature, String damageType) async {
// Disable the UI while the async operations are in progress.
setState(() => _ready = false);
// Update the damage type field to the selected value.
feature.attributes['typdamage'] = damageType;
feature.attributes['inspemail'] = null;
// Update the feature in the local table.
await _damageFeatureLayer.featureTable!.updateFeature(feature);
// Sync the change with the service on the service geodatabase.
await _damageServiceFeatureTable.serviceGeodatabase!.applyEdits();
showMessageDialog(
'Updated feature ${feature.attributes['objectid']} to $damageType.',
);
// Re-enable the UI.
setState(() => _ready = true);
}when update it's return
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
So, if i want update attributes value to null, how can i do? For all type like esriFieldTypeDate, esriFieldTypeDouble, esriFieldTypeInteger ...