SchemaBuilder class

Build a Schema.

final builder = SchemaBuilder()
  ..attr('aka', cardinality: Cardinality.many)
  ..attr('friend', valueType: ValueType.ref);
final schema = builder.build();

Constructors

SchemaBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema Schema
The schema to build.
final

Methods

attr(String name, {Unique? ident, ValueType? valueType, Cardinality? cardinality, bool? index, String? doc}) → void
Registers an attribute.
build() Schema
Returns built schema.
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