Spec-Zone.ru › Dart 2

dart:html

Метод getContext

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

Реализация

@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);
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/CanvasElement/getContext.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API