W3cubDocs

/Dart 2

getContext method

Object getContext (String contextType, [ Map attributes ])

Implementation

Object getContext(String contextType, [Map attributes]) {
  if (attributes != null) {
    var attributes_1 = convertDartToNative_Dictionary(attributes);
    return _getContext_1(contextType, attributes_1);
  }
  return _getContext_2(contextType);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/OffscreenCanvas/getContext.html