getContext method

  1. @Creates('CanvasRenderingContext2D|RenderingContext|RenderingContext2')
  2. @Returns('CanvasRenderingContext2D|RenderingContext|RenderingContext2|Null')
Object? getContext(
  1. String contextId, [
  2. Map? attributes
])

Implementation

@Creates('CanvasRenderingContext2D|RenderingContext|RenderingContext2')
@Returns('CanvasRenderingContext2D|RenderingContext|RenderingContext2|Null')
Object? getContext(String contextId, [Map? attributes]) {
  if (attributes != null) {
    var attributes_1 = convertDartToNative_Dictionary(attributes);
    return _getContext_1(contextId, attributes_1);
  }
  return _getContext_2(contextId);
}