SchemaBuilder class
Build a Schema.
final builder = SchemaBuilder()
..attr('aka', cardinality: Cardinality.many)
..attr('friend', valueType: ValueType.ref);
final schema = builder.build();
Constructors
Properties
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