getPropertyValue method

String getPropertyValue (
  1. String propertyName
)
override

Returns the value of the property if the provided CSS property name is supported on this element and if the value is set. Otherwise returns an empty string.

Please note the property name uses camelCase, not-hyphens.

Implementation

String getPropertyValue(String propertyName) {
  return _getPropertyValueHelper(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/getPropertyValue.html