ThreeModel class
ThreeModel
is a class designed to encapsulate the data and functionality related to
a 3D model to be utilized within an AR (Augmented Reality) session.
It stores the model's name, a function to initiate the AR session, and an instance of ThreeScene
that represents the 3D scene/model.
Constructors
- ThreeModel({required String name, required Function startARSession, required ThreeScene scene})
-
Creates a new instance of
ThreeModel
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
A
String
that represents the name of the 3D model.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scene → ThreeScene
-
An instance of
ThreeScene
that represents the 3D model/scene to be displayed and interacted with.final - startARSession → Function
-
A
Function
which, when called, starts the AR session for the associated 3D model.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