clear method

void clear()

Removes every material from the group.

Implementation

void clear() => _materials.clear();