AnchorEventController class

Manages a set of AnchorEvents and notifies listeners of changes.

Used by widgets that expose their internal event for the sake of extensions that add support for additional events.

The controller's value is its current set of events. Listeners are notified whenever the value changes. The value should only be changed with update; it should not be modified directly.

Inheritance

Constructors

AnchorEventController()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isDisabled bool
Getter for whether WidgetEvent.disabled to be active.
no setterinherited
isDragged bool
Getter for whether WidgetEvent.dragged to be active.
no setterinherited
isErrored bool
Getter for whether WidgetEvent.error to be active.
no setterinherited
isFocused bool
Getter for whether WidgetEvent.focused to be active.
no setterinherited
isHovered bool
Getter for whether WidgetEvent.hovered to be active.
no setterinherited
isPressed bool
Getter for whether WidgetEvent.pressed to be active.
no setterinherited
isSelected bool
Getter for whether WidgetEvent.selected to be active.
no setterinherited
onChanged VoidCallback?
Called when value changes.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Set<WidgetEvent>
Managed set of active WidgetEvent values; designed to be passed to DrivenProperty.resolve methods.
getter/setter pairinherited

Methods

add(WidgetEvent event) → void
Mutator to mark a T value as active.
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clear() → void
Removes all elements from the value.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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).
inherited
emit(WidgetEvent event, {ValueChanged<bool>? onChanged}) ValueChanged<bool>
Callback factory which accepts a T value and returns a closure to mutate value and call setState.
inherited
merge(Set<WidgetEvent> events) → void
Merge value with a new set of WidgetEvent.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
remove(WidgetEvent event) → void
Mutator to mark a T value as inactive.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replace(Set<WidgetEvent> events) → void
Replace value with a new set of WidgetEvent.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toggle(WidgetEvent event, [bool? active]) → void
Mutator to mark a T value as either active or inactive.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited