DVModelPageSpec class

What a generated model's public page is made from: where its rows are and which fields carry the title, the content, the image and whether the row is published. Pure data, so the backend -- which cannot import the generated model class, a Flutter widget being part of it -- can render the page from a row.

Constructors

DVModelPageSpec({required String model, required String route, required String param, required String table, required String keyField, String? titleField, List<String> contentFields = const <String>[], String? imageField, String? publishedField, String? schemaType, String? favicon, Set<String> protectedFields = const <String>{}, bool personal = false, bool viewPolicy = false})
const

Properties

contentFields → List<String>
final
favicon → String?
The favicon this model's pages wear, or null for the application's.
final
hashCode → int
The hash code for this object.
no setterinherited
imageField → String?
final
keyField → String
final
model → String
final
param → String
final
personal → bool
Whether a row is its own privacy subject (subject: DVSubject.self): every field is the person's, so no page data is made from one at all.
final
protectedFields → Set<String>
The fields no page data is ever made from: the model's @DVModel.sensitiveField()s and the fields naming its privacy subject.
final
publishedField → String?
final
route → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaType → String?
The schema.org type the page is, from @DVModel(schemaType:). Null is Thing: honestly general beats a guess from the model's name, which a search engine would act on.
final
table → String
final
titleField → String?
final
viewPolicy → bool
Whether the application declares a view policy for this model, found by the generator in its @DVPolicy classes -- including those only the client can load. A server that has not registered it refuses rather than read the model as having no policy.
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