InteractiveOptions<T> class

Main configuration options for interactive layers.

Constructors

InteractiveOptions({InteractiveEnabledGestures enabledGestures = const InteractiveEnabledGestures(), AutoPanOnDragOptions autoPanOnDrag = const AutoPanOnDragOptions(), bool moveOnTap = false, bool centerOnTap = true, InteractiveCallback<T>? onActive, InteractiveCallback<T>? onTap, InteractiveCallback<T>? onLongPress, InteractiveCallback<T>? onHovered, bool saveOnExit = true, bool autoSave = false, Duration autoSaveDelay = const Duration(milliseconds: 700), Duration mergeDelay = const Duration(milliseconds: 150), OnEntityDeltaCallback<T>? onSaved, OnEntityChangedCallback<T>? onAdded, OnEntityChangedCallback<T>? onRemoved, OnEntityChangedCallback<T>? onUpdated, OnSpatialUpdateCallback<T>? onSpatialUpdate, ValueChanged<bool>? onEditModeChanged})
const

Properties

autoPanOnDrag AutoPanOnDragOptions
Auto-pan options when dragging near edges.
final
autoSave bool
Whether to automatically save local changes while editing.
final
autoSaveDelay Duration
Delay before auto-saving after a local change.
final
centerOnTap bool
Whether to center on tap.
final
enabledGestures InteractiveEnabledGestures
Which gestures are enabled.
final
hashCode int
The hash code for this object.
no setteroverride
mergeDelay Duration
Delay for merging consecutive operations.
final
moveOnTap bool
Whether to move to tapped location.
final
onActive InteractiveCallback<T>?
Called when an item becomes active.
final
onAdded InteractiveCallback<T>?
Called when an item is added.
final
onEditModeChanged ValueChanged<bool>?
Called when edit mode changes.
final
onHovered InteractiveCallback<T>?
Called when an item is hovered.
final
onLongPress InteractiveCallback<T>?
Called when an item is long-pressed.
final
onRemoved InteractiveCallback<T>?
Called when an item is removed.
final
onSaved OnEntityDeltaCallback<T>?
Called when changes are saved.
final
onSpatialUpdate OnSpatialUpdateCallback<T>?
Called when an item's spatial position changes.
final
onTap InteractiveCallback<T>?
Called when an item is tapped.
final
onUpdated InteractiveCallback<T>?
Called when an item is updated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveOnExit bool
Whether to save changes when exiting edit mode.
final

Methods

copyWith({InteractiveEnabledGestures? enabledGestures, AutoPanOnDragOptions? autoPanOnDrag, bool? moveOnTap, bool? centerOnTap, InteractiveCallback<T>? onActive, InteractiveCallback<T>? onTap, InteractiveCallback<T>? onLongPress, InteractiveCallback<T>? onHovered, bool? saveOnExit, bool? autoSave, Duration? autoSaveDelay, Duration? mergeDelay, OnEntityDeltaCallback<T>? onSaved, OnEntityChangedCallback<T>? onAdded, OnEntityChangedCallback<T>? onRemoved, OnEntityChangedCallback<T>? onUpdated, OnSpatialUpdateCallback<T>? onSpatialUpdate, ValueChanged<bool>? onEditModeChanged}) InteractiveOptions<T>
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.
override