Field.timeOnly constructor

Field.timeOnly({
  1. required String name,
  2. required String alias,
})

Creates a new FieldType.timeOnly field object with the following parameters.

Use this method to create a field. The field will be editable and nullable.

Parameters:

  • name — Name of the field.
  • alias — Alias of the field.

Implementation

factory Field.timeOnly({
  required String name,
  required String alias,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreName = _CString(name);
  final coreAlias = _CString(alias);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Field_createTimeOnly(
      coreName.bytes,
      coreAlias.bytes,
      errorHandler,
    );
  });
  return Field._withHandle(handle);
}