setOptions method
Updates the controller configuration options.
Implementation
void setOptions(InteractiveOptions<T> options) {
_options = options;
_transactions.setMergeDelay(options.mergeDelay);
setEditModeCallback(options.onEditModeChanged);
// Update generic callbacks
setCallbacks(
onAdded: options.onAdded,
onRemoved: options.onRemoved,
onUpdated: options.onUpdated,
onSaved: (delta) => options.onSaved?.call(delta),
onTap: options.onTap,
onActive: options.onActive,
onHover: options.onHovered,
onLongPress: options.onLongPress,
);
// Note: Specialized fields like mergeDelay or saveOnExit are accessed via specific controller implementation
// usually. Or should InteractiveController hold the reference?
// For now, subclasses hold the reference. But generic configuration injection is useful here.
}