We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efbf0c commit 2f747d0Copy full SHA for 2f747d0
ngdart/lib/src/common/directives/ng_style.dart
@@ -84,8 +84,8 @@ class NgStyle implements DoCheck {
84
85
void _setProperty(KeyValueChangeRecord record) {
86
// HTMLElement, SVGElement and MathMLElement have same `style` property.
87
- (_ngElement as HTMLElement)
88
- .style
89
- .setProperty(unsafeCast(record.key), unsafeCast(record.currentValue ?? ''));
+ // The cast should be omitted because both types are JSObject.
+ (_ngElement as HTMLElement).style.setProperty(
+ unsafeCast(record.key), unsafeCast(record.currentValue ?? ''));
90
}
91
0 commit comments