supportsProperty method

bool supportsProperty (
  1. String propertyName
)

Returns true if the provided CSS property name is supported on this element.

Please note the property name camelCase, not-hyphens. This method returns true if the property is accessible via an unprefixed or prefixed property.

Implementation

bool supportsProperty(String propertyName) {
  return _supportsProperty(propertyName) ||
      _supportsProperty(_camelCase("${Device.cssPrefix}$propertyName"));
}

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