getTagAs<T extends TagXml> method
- String tag,
- T constructor()
Returns a child node with the given tag as an instance of T.
If the child node does not exist, it returns null.
Implementation
T? getTagAs<T extends TagXml>(String tag, T Function() constructor) => mutate(getFirstChild(tag), constructor);