OffscreenCanvas class
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- OffscreenCanvas.new(num width, num height)
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(OffscreenCanvasEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
Overload accessor: $1, $2no setter -
convertToBlob
↔ Future<
Blob> Function([ImageEncodeOptions?]) -
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
getter/setter pair - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - getContext → ({OffscreenCanvasRenderingContext2D? Function(String contextId, [dynamic options]) $1, ImageBitmapRenderingContext? Function(String contextId, [dynamic options]) $2, WebGLRenderingContext? Function(String contextId, [dynamic options]) $3, WebGL2RenderingContext? Function(String contextId, [dynamic options]) $4, Object? Function(OffscreenRenderingContextId contextId, [dynamic options]) $5})
-
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
Overload accessor: $1, $2, $3, $4, $5no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ num
-
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
These attributes return the dimensions of the OffscreenCanvas object's bitmap.getter/setter pair - oncontextlost ↔ dynamic Function(Event)?
-
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
getter/setter pair - oncontextrestored ↔ dynamic Function(Event)?
-
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
getter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(OffscreenCanvasEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transferToImageBitmap ↔ ImageBitmap Function()
-
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
getter/setter pair - width ↔ num
-
Available on OffscreenCanvas, provided by the OffscreenCanvas$Typings extension
These attributes return the dimensions of the OffscreenCanvas object's bitmap.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited