Component constructor
Creates a Component.
The given baseInnerHtml
string will be checked if it really has matching
id="" tag or not. The given id
should exist in baseInnerHtml
as
id="$id" attribute. This will keep this class in sync with the real DOM.
Implementation
Component(String id, String baseInnerHtml) {
if (id == '') throw ArgumentError('Must not be empty', 'id');
_id = id;
this.baseInnerHtml = baseInnerHtml;
}