EventWidget class

dynamic widget that changed whenever a register event is trigger and passed by event tester

Inheritance
Mixed in types

Constructors

EventWidget({Event? buildEvent, required Map<EventID, EventTester> consumers, required EventItemBuilder builder, WidgetNotifier? onReady, Widget? child, Widget? childPlaceHolder = kDebugMode ? const Text('Empty Event') : const SizedBox.shrink(), String debugTag = 'EventWidget', Key? key})

Properties

builder EventItemBuilder
builder function that is called whenever event passes a test after getting triggered
final
buildEvent Event?
first event to be tested while building this widget for first time
final
child Widget?
final child that was passed to builder function
final
childPlaceHolder Widget?
final childPlaceHolder that is used if initallly there is no event to process and it was also not null
final
consumers Map<EventID, EventTester>
EventID list to be consumed with passed EventTester
final
debugTag String
debug tag to help with debugging
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onReady WidgetNotifier?
ready for event notifier funtion
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
triggerEvent(Event event) → void
trigger this event and notifies all registered consumer with optional args
inherited

Operators

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