createFeatureWithTemplate method
- FeatureTemplate featureTemplate, {
- Geometry? geometry,
Creates a new feature based on the provided feature template and geometry.
Parameters:
featureTemplate
— The feature template.geometry
— The geometry.
Return Value: An ArcGISFeature.
Implementation
ArcGISFeature createFeatureWithTemplate(
FeatureTemplate featureTemplate, {
Geometry? geometry,
}) {
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_ArcGISFeatureTable_createFeatureWithTemplateAndGeometry(
_handle,
featureTemplate._handle,
geometry?._handle ?? ffi.nullptr,
errorHandler,
);
});
return ArcGISFeature._fromHandle(
objectHandle,
)!;
}