Flutter3DController class

Constructors

Flutter3DController()

Properties

hashCode → int
The hash code for this object.
no setterinherited
onModelLoaded ↔ ValueNotifier<bool>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAvailableAnimations() → Future<List<String>>
It will return available animations list of 3D model as List<String>
getAvailableTextures() → Future<List<String>>
It will return available 3D models texture as List<String>
init(IFlutter3DRepository repository) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseAnimation() → void
Causes animations to be paused at current frame.
pauseRotation() → void
Pauses the ongoing rotation, keeping the 3D model at its current orientation. The rotation can be resumed later without resetting the rotation state.
playAnimation({String? animationName, int loopCount = 0}) → void
Causes animations to be played, Can be use to switch animations as well. If animationName is null and model has at list one animation, it will play first model's animation If animationName passed and not null it will play specific animation.
resetAnimation() → void
Causes animation to be played from first frame
resetCameraOrbit() → void
Causes camera target reset to default value
resetCameraTarget() → void
Causes camera orbit reset to default value
setCameraOrbit(double theta, double phi, double radius) → void
It will change camera orbit
setCameraTarget(double x, double y, double z) → void
It will change camera target
setTexture({required String textureName}) → void
It will change Texture of 3D model Can be used to load desire Texture of 3D model
startRotation({int rotationSpeed = 10}) → void
Starts the rotation of the 3D model. rotationSpeed defines the speed of the rotation in degrees per second. Defaults to 10 if not provided.
stopAnimation() → void
Causes animation to be stopped
stopRotation() → void
Stops the rotation completely and resets the rotation state to the initial position.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited