I am trying to make a custom element in dart. It should simply contain 2 buttons. It never actually makes it through the construction process...what am I doing wrong?
There are a few issues in your code.
-
in their name setup(...)
method you added wasn't called, therefore not caption was added to the buttonHtmlElement
DartPad example
See also: