BodyMapController class
Controller for managing the interactive body map state Supports multi-muscle selection only
- Inheritance
-
- Object
- ChangeNotifier
- BodyMapController
Constructors
Properties
-
disabledMuscles
→ Set<
Muscle> -
Get disabled muscles (read-only)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isFront ↔ bool
-
Whether to show the front view (true) or back view (false) (writable)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedMuscles
↔ Set<
Muscle> -
Get selected muscles (read-only)
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearSelection(
) → void - Clear all selections
-
deselectMuscle(
Muscle muscle) → void - Deselect a specific muscle
-
disableMuscle(
Muscle muscle) → void - Disable a muscle (add to disabled set and remove from selection)
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
enableMuscle(
Muscle muscle) → void - Enable a muscle (remove from disabled set)
-
isDisabled(
Muscle muscle) → bool - Check if a muscle is disabled (read-only)
-
isSelected(
Muscle muscle) → bool - Check if a muscle is selected (read-only)
-
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
-
selectMultiple(
Set< Muscle> muscles) → void - Select multiple muscles at once
-
selectMuscle(
Muscle muscle) → void - Select or toggle a muscle (multi-select mode) If muscle is already selected, it will be deselected (toggle behavior)
-
setBackView(
) → void - Set the view to back
-
setDisabledMuscles(
Set< Muscle> muscles) → void - Set disabled muscles
-
setFrontView(
) → void - Set the view to front
-
setInitialSelection(
Set< Muscle> muscles) → void - Set initial selection (without triggering listeners)
-
setSelectedMuscles(
Set< Muscle> muscles) → void - Set the entire selection to a specific set of muscles
-
toggleMuscle(
Muscle muscle) → void - Toggle a muscle's selection state
-
toggleView(
) → void - Toggle between front and back view
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited