Table class Null safety

Annotation to configure the table definition of a ManagedObject.

Adding this metadata to a table definition (T in ManagedObject<T>) configures the behavior of the underlying table. For example:

    class User extends ManagedObject<_User> implements _User {}

    @Table(name: "_Account");
    class _User {
      @primaryKey
      int id;

      String name;
      String email;
    }

Constructors

Table({String? name, List<Symbol>? uniquePropertySet})
Default constructor. [...]
const
Table.unique(List<Symbol> properties)
Configures each instance of a table definition to be unique for the combination of properties. [...]
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
The name of the underlying database table. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uniquePropertySet List<Symbol>?
Each instance of the associated table definition is unique for these properties. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited