W3cubDocs

/Dart 2

operator [] method

Stream<Event> operator [] (String type)
override

Implementation

Stream<Event> operator [](String type) {
  if (webkitEvents.keys.contains(type.toLowerCase())) {
    if (Device.isWebKit) {
      return new _ElementEventStreamImpl(
          _ptr, webkitEvents[type.toLowerCase()], false);
    }
  }
  return new _ElementEventStreamImpl(_ptr, type, false);
}

© 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/ElementEvents/operator_get.html