StatefulWidgetWithCallback class

A StatefulWidget with some callbacks.

Inheritance

Constructors

StatefulWidgetWithCallback({Key? key, required Widget child, void initStateCallback(BuildContext context, StateSetter setState)?, void didChangeDependenciesCallback(BuildContext context, StateSetter setState)?, void didUpdateWidgetCallback(BuildContext context, StateSetter setState)?, void reassembleCallback(BuildContext context, StateSetter setState)?, void buildCallback(BuildContext context, StateSetter setState)?, void activateCallback(BuildContext context, StateSetter setState)?, void deactivateCallback(BuildContext context, StateSetter setState)?, void disposeCallback(BuildContext context, StateSetter setState)?, void permanentFrameCallback(BuildContext context, StateSetter setState)?, void postFrameCallbackForInitState(BuildContext context, StateSetter setState)?, void postFrameCallbackForDidChangeDependencies(BuildContext context, StateSetter setState)?, void postFrameCallbackForDidUpdateWidget(BuildContext context, StateSetter setState)?, void postFrameCallbackForBuild(BuildContext context, StateSetter setState)?})
Creates StatefulWidgetWithCallback with non-null child.
const
StatefulWidgetWithCallback.builder({Key? key, required StatefulWidgetBuilder builder, void initStateCallback(BuildContext context, StateSetter setState)?, void didChangeDependenciesCallback(BuildContext context, StateSetter setState)?, void didUpdateWidgetCallback(BuildContext context, StateSetter setState)?, void reassembleCallback(BuildContext context, StateSetter setState)?, void buildCallback(BuildContext context, StateSetter setState)?, void activateCallback(BuildContext context, StateSetter setState)?, void deactivateCallback(BuildContext context, StateSetter setState)?, void disposeCallback(BuildContext context, StateSetter setState)?, void permanentFrameCallback(BuildContext context, StateSetter setState)?, void postFrameCallbackForInitState(BuildContext context, StateSetter setState)?, void postFrameCallbackForDidChangeDependencies(BuildContext context, StateSetter setState)?, void postFrameCallbackForDidUpdateWidget(BuildContext context, StateSetter setState)?, void postFrameCallbackForBuild(BuildContext context, StateSetter setState)?})
Creates StatefulWidgetWithCallback with non-null builder.
const

Properties

activateCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.activate is called.
final
buildCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.build is called.
final
builder StatefulWidgetBuilder?
The function which is used to obtain the stateful child widget.
final
child Widget?
The widget below this widget in the tree.
final
deactivateCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.deactivate is called.
final
didChangeDependenciesCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.didChangeDependencies is called.
final
didUpdateWidgetCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.didUpdateWidget is called.
final
disposeCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.dispose is called.
final
hashCode int
The hash code for this object.
no setterinherited
initStateCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.initState is called.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
permanentFrameCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be scheduled for the end of each frame, which will be called after postFrameCallback.
final
postFrameCallbackForBuild → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be scheduled for the end of this frame, which will be added when State.build.
final
postFrameCallbackForDidChangeDependencies → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be scheduled for the end of this frame, which will be added when State.didChangeDependencies.
final
postFrameCallbackForDidUpdateWidget → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be scheduled for the end of this frame, which will be added when State.didUpdateWidget.
final
postFrameCallbackForInitState → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be scheduled for the end of this frame, which will be added when State.initState.
final
reassembleCallback → (void Function(BuildContext context, StateSetter setState)?)
The callback that will be invoked when State.reassemble is called.
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<StatefulWidgetWithCallback>
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

Operators

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