ScribbleNotifierBase class abstract

The base class for a notifier that controls the state of a Scribble widget.

This class is meant to be extended by a concrete implementation that provides the actual behavior.

See ScribbleNotifier for the default implementation.

Inheritance
Implementers

Constructors

ScribbleNotifierBase(ScribbleState state)
The base class for a notifier that controls the state of a Scribble widget.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
repaintBoundaryKey → GlobalKey<State<StatefulWidget>>
You need to provide a key that the RepaintBoundary can use so you can access it from the renderImage method.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value ↔ ScribbleState
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onPointerCancel(PointerCancelEvent event) → void
Should be called when the pointer is canceled with the corresponding event.
onPointerDown(PointerDownEvent event) → void
Should be called when the pointer is pressed down on the canvas with the corresponding event.
onPointerExit(PointerExitEvent event) → void
Should be called when the pointer exits the canvas with the corresponding event.
onPointerHover(PointerHoverEvent event) → void
Should be called when the pointer hovers over the canvas with the corresponding event.
onPointerUp(PointerUpEvent event) → void
Should be called when the pointer is lifted from the canvas with the corresponding event.
onPointerUpdate(PointerMoveEvent event) → void
Should be called when the pointer is moved on the canvas with the corresponding event.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
renderImage({double pixelRatio = 1.0, ImageByteFormat format = ui.ImageByteFormat.png}) → Future<ByteData>
Used to render the image to ByteData which can then be stored or reused for example in an Image.memory widget.
toString() → String
A string representation of this object.
inherited

Operators

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