RemoteSchemaDef class

Validated, immutable definition of one remote content pack's schema across its version history. See library doc for the safety guarantee its factory constructor provides.

Constructors

RemoteSchemaDef({required String packName, required List<RemoteSchemaVersion> versions})
factory

Properties

current → RemoteSchemaVersion
The newest declared version — the shape generateModelSource and buildMigrationRegistry's currentVersion target.
no setter
hashCode → int
The hash code for this object.
no setterinherited
packName → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versions → List<RemoteSchemaVersion>
Sorted ascending by RemoteSchemaVersion.version; always non-empty.
final

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited