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