detach method

void detach (
  1. {String selector,
  2. bool data: true}
)

Remove the elements from the DOM.

    • If data is true, also remove associtated data under all elements and
  • decendants.

Implementation

void detach({String selector, bool data: true});