tableName property

String? get tableName

The table name, i.e. the last element in collection.

Implementation

String? get tableName {
  if (collection == null || collection!.isEmpty) {
    throw StateError(
      '[DataRefModelExtension] Invalid collection: Collection cannot be null or empty.',
    );
  }
  return collection?.lastOrNull;
}