NmGalaxySelection class
State management for property selection in Galaxy view
- Inheritance
-
- Object
- ChangeNotifier
- NmGalaxySelection
Constructors
Properties
- currentLasso → NmLassoSelection?
-
Current lasso.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasSelection → bool
-
Whether any properties are selected
no setter
-
highlightedIds
→ Set<
String> -
Highlighted ids.
no setter
- isLassoMode → bool
-
Is lasso mode.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedIds
→ Set<
String> -
Selected ids.
no setter
- selectionCount → int
-
Number of selected properties
no setter
- stats → NmGalaxySelectionStats
-
Stats.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
cancelLasso(
) → void - Cancel current lasso without selecting
-
clearHighlights(
) → void - Clear highlights
-
clearSelection(
) → void - Clear all selections
-
completeLasso(
List< String> enclosedPropertyIds) → void - Complete lasso and select enclosed properties
-
deselect(
String propertyId) → void - Deselect a single property
-
deselectAll(
Iterable< String> propertyIds) → void - Deselect multiple properties
-
dispose(
) → void -
Discards any resources used by the object.
override
-
enterLassoMode(
) → void - Enter lasso mode
-
exitLassoMode(
) → void - Exit lasso mode
-
getSelectedProperties(
) → List< NmGalaxyLien> - Get selected properties as list
-
isSelected(
String propertyId) → bool - Check if a property is selected
-
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
-
select(
String propertyId) → void - Select a single property
-
selectAll(
Iterable< String> propertyIds) → void - Select multiple properties
-
selectHighlighted(
) → void - Select all highlighted properties
-
setHighlighted(
Set< String> propertyIds) → void - Set highlighted properties
-
setPropertiesCache(
List< NmGalaxyLien> properties) → void - Update properties cache for stats calculation
-
startLasso(
Offset point) → void - Start drawing a lasso
-
toggle(
String propertyId) → void - Toggle selection for a property
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLasso(
Offset point) → void - Add point to current lasso
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited