Model class
Constructors
Model ({required String id , required String project , required String name , String ? nameDe , String ? nameEn , String ? nameFr , String ? nameIt , String ? slug , String ? image , String imageThumb = '' , String imagePreview = '' , bool ? preview , ModelStatus ? status , String description = '' , String ? descriptionDe , String ? descriptionEn , String ? descriptionFr , String ? descriptionIt , int ? number , String siteUrl = '' , String ? siteUrlDe , String ? siteUrlEn , String ? siteUrlFr , String ? siteUrlIt , String ? sku , double ? price , String priceCurrency = 'CHF' , bool ? scaleable , String ? glb , String ? usdz , String ? model , Map <String , Object > arbuttonConfig = const {} , required DateTime created , required DateTime modified , bool ? verticalPlacement })
Returns a new Model instance.
Properties
arbuttonConfig
↔ Map <String , Object >
getter/setter pair
created
↔ DateTime
getter/setter pair
description
↔ String
getter/setter pair
descriptionDe
↔ String ?
Used when shared as link and for SEO.
getter/setter pair
descriptionEn
↔ String ?
Used when shared as link and for SEO.
getter/setter pair
descriptionFr
↔ String ?
Used when shared as link and for SEO.
getter/setter pair
descriptionIt
↔ String ?
Used when shared as link and for SEO.
getter/setter pair
glb
↔ String ?
Must be a binary glTF file according to the Khronos Group standard.
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter override
id
↔ String
getter/setter pair
image
↔ String ?
Preview image of the model (iOS, gallery, sharing, SEO).
getter/setter pair
imagePreview
↔ String
getter/setter pair
imageThumb
↔ String
getter/setter pair
model
↔ String ?
Source of 3D Model (Blender, Maya, Cinema 4D, CAD etc,). Use archive for multiple files.
getter/setter pair
modified
↔ DateTime
getter/setter pair
name
↔ String
getter/setter pair
nameDe
↔ String ?
Name will be visible in Android as title.
getter/setter pair
nameEn
↔ String ?
Name will be visible in Android as title.
getter/setter pair
nameFr
↔ String ?
Name will be visible in Android as title.
getter/setter pair
nameIt
↔ String ?
Name will be visible in Android as title.
getter/setter pair
number
↔ int ?
Use for custom sort order.
getter/setter pair
preview
↔ bool ?
True when model is in order and work is still in progress. False when order is completed.
getter/setter pair
price
↔ double ?
Display price. The effective price is determined by the external webstore.
getter/setter pair
priceCurrency
↔ String
getter/setter pair
project
↔ String
The project this model belongs to. Cannot be changed once created.
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scaleable
↔ bool ?
Let's the user scale the model in AR when enabled.
getter/setter pair
siteUrl
↔ String
getter/setter pair
siteUrlDe
↔ String ?
Link to the product on your site. Required when using standalone QR codes (e.g. Print).
getter/setter pair
siteUrlEn
↔ String ?
Link to the product on your site. Required when using standalone QR codes (e.g. Print).
getter/setter pair
siteUrlFr
↔ String ?
Link to the product on your site. Required when using standalone QR codes (e.g. Print).
getter/setter pair
siteUrlIt
↔ String ?
Link to the product on your site. Required when using standalone QR codes (e.g. Print).
getter/setter pair
sku
↔ String ?
Stock-keeping unit. The identfier of the product in external webstore.
getter/setter pair
slug
↔ String ?
Unique Short-URL for embedding. Cannot be changed once created.
getter/setter pair
status
↔ ModelStatus ?
Please note: This property should have been non-nullable! Since the specification file
does not include a default value (using the "default:" property), however, the generated
source code must fall back to having a nullable type.
Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
usdz
↔ String ?
Must be a USDZ or Reality Composer file.
getter/setter pair
verticalPlacement
↔ bool ?
When set to true, users will be able to place the model on a vertical surface.
getter/setter pair