add abstract method

void add(
  1. Object? data
)

Adds the given data to the body.

If the body is not a list, this will throw an exception.

Implementation

void add(Object? data);