entityInfoName property

  1. @override
String entityInfoName
override

The name of the Dart class storing additional properties like type converters.

Implementation

@override
String get entityInfoName {
  // if this table was parsed from sql, a user might want to refer to it
  // directly because there is no user defined parent class.
  // So, turn CREATE TABLE users into something called "Users" instead of
  // "$UsersTable".
  final name = _overriddenName ?? tableInfoNameForTableClass(_baseName);
  if (name == dartTypeName) {
    // resolve clashes if the table info class has the same name as the data
    // class. This can happen because the data class name can be specified by
    // the user.
    return '${name}Table';
  }
  return name;
}