OffscreenCanvas$Typings extension

on

Properties

addEventListener → ({void Function<K$>(OffscreenCanvasEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
convertToBlob Future<Blob> Function([ImageEncodeOptions?])
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})
Overload accessor: $1, $2, $3, $4, $5
no setter
height num
These attributes return the dimensions of the OffscreenCanvas object's bitmap.
getter/setter pair
oncontextlost ↔ dynamic Function(Event)?
getter/setter pair
oncontextrestored ↔ dynamic Function(Event)?
getter/setter pair
removeEventListener → ({void Function<K$>(OffscreenCanvasEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
transferToImageBitmap ImageBitmap Function()
getter/setter pair
width num
These attributes return the dimensions of the OffscreenCanvas object's bitmap.
getter/setter pair