Field.text constructor
Creates a new FieldType.text 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.length
— Length of the field.
Implementation
factory Field.text(
{required String name, required String alias, required int length}) {
_initializeArcGISEnvironmentIfNeeded();
final coreName = _CString(name);
final coreAlias = _CString(alias);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Field_createText(
coreName.bytes, coreAlias.bytes, length, errorHandler);
});
return Field._withHandle(handle);
}