createTable method

Future<GeodatabaseFeatureTable> createTable(
  1. {required TableDescription tableDescription}
)

Creates a new table in the geodatabase.

Creating tables is only supported in mobile geodatabases (either created in Pro or via Geodatabase.create). The table name must not already exist in the geodatabase. For additional table name constraints, see TableDescription.tableName.

Parameters:

  • tableDescription — The description of the table to create.

Return Value: A Future that returns a GeodatabaseFeatureTable in a loaded state, if one was able to be created.

Implementation

Future<GeodatabaseFeatureTable> createTable(
    {required TableDescription tableDescription}) {
  return _createTable(tableDescription: tableDescription).then((table) {
    _geodatabaseFeatureTables.invalidateCache();
    return table;
  });
}