PCanvasClickEvent class
A PCanvas click event.
See PCanvas.onClick
.
- Inheritance
-
- Object
- PCanvasEvent
- PCanvasClickEvent
Constructors
- PCanvasClickEvent(String type, num x, num y, {PCanvasClickEvent? parentEvent, PCanvasElement? targetElement, PCanvas? pCanvas, Object? nativeEvent})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- nativeEvent → Object?
-
The native event object.
finalinherited
- parentElement → PCanvasElement?
-
The parent PCanvasElement of this event. See parentEvent.
no setterinherited
- parentEvent → PCanvasClickEvent?
-
The event received by the parent element.
no setteroverride
- pCanvas → PCanvas?
-
The PCanvas processing this event.
finalinherited
- point → Point
-
The x, y coordinates.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetElement → PCanvasElement?
-
The target PCanvasElement of this event.
finalinherited
- type → String
-
The event type.
finalinherited
- x → num
-
The event X coordinate.
final
- y → num
-
The event Y coordinate.
final
Methods
-
copyWith(
{String? type, num? x, num? y, PCanvasElement? targetElement, PCanvasClickEvent? parentEvent, PCanvas? pCanvas}) → PCanvasClickEvent - Copies this instance overwriting with the passed parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preventDefault(
[PCanvas? pCanvas]) → bool -
Prevents PCanvasEvent.nativeEvent default behavior if
pCanvas
parameter or field is provided.inherited -
toInfoString(
{bool withParentEvents = true, bool withType = true, String indent = ''}) → String -
override
-
toString(
{bool withParentEvents = true}) → String -
A string representation of this object.
override
-
translate(
num translateX, num translateY, {PCanvasElement? targetElement, PCanvas? pCanvas}) → PCanvasClickEvent - Translates this event coordinates.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override