AquariumController class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasListeners
→ bool
-
Whether any listeners are currently registered.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
addRipple(Offset position, {double amplitude = 1.0, double maxRadius = 160.0})
→ void
-
Trigger a water ripple wavefront at
position.
-
attach({required void onAddRipple(Offset position, double amplitude, double maxRadius), required void onDropFood(Offset? position), required void onSetFishCount(int count), required void onSetTheme(AquariumThemePreset preset), required void onToggleCaustics(bool enabled), required void onToggleControls(bool enabled), required void onStartLoading(), required void onStopLoading()})
→ void
-
-
detach()
→ void
-
-
dispose()
→ void
-
Discards any resources used by the object.
inherited
-
dropFood([Offset? position])
→ void
-
Drop a food pellet at
position (or random location if omitted).
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setFishCount(int count)
→ void
-
Update the live fish population count.
-
setTheme(AquariumThemePreset preset)
→ void
-
Change the aquatic water theme preset.
-
startLoading()
→ void
-
Puts the aquarium into loading mode, attracting all fish to circle around the center.
-
stopLoading()
→ void
-
Restores normal free-swimming behavior for all fish.
-
toggleCaustics([bool? enabled])
→ void
-
Toggle water caustics light network.
-
toggleControls([bool? visible])
→ void
-
Toggle floating controls overlay visibility.
-
toString()
→ String
-
A string representation of this object.
inherited