DVModel3DFieldPolicy class final
The upload limits of one 3D model field, as the generator writes them into
Model.model3dFields.
Constructors
- DVModel3DFieldPolicy({bool poster = true, int? maxBytes, int? maxTriangles})
-
const
- DVModel3DFieldPolicy.megabytes(int maxSizeMb, {bool poster = true, int? maxTriangles})
-
maxSizeMbmebibytes, the unit the annotation is written in.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxBytes → int?
-
final
- maxTriangles → int?
-
final
- poster → bool
-
Whether the field asks for a still of the model for where 3D cannot
render.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accept(
List< int> bytes, {required String storageKey}) → DVSceneAsset -
The field value for a valid upload stored at
storageKey, pinned to these exact bytes by their digest. Throws DVModel3DRejected otherwise. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
List< int> bytes) → DVModel3DValidation -
Checks
bytes. Size first, without reading the file, so an oversized upload costs nothing to refuse.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited