TimeExtent.withTimeInstant constructor
- DateTime? timeInstant
Creates a time extent with a time instant.
Parameters:
timeInstant
— The time instant is both the start and end time of the extent.
Implementation
factory TimeExtent.withTimeInstant(
DateTime? timeInstant,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreTimeInstant = timeInstant?.toArcGIS();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_TimeExtent_createWithTimeInstant(
coreTimeInstant?._handle ?? ffi.nullptr,
errorHandler,
);
});
return TimeExtent._withHandle(handle);
}