setPolygonMode method
Filled or drawn as edges. Ask GraphicsDevice.supportsWireframe before
naming PolygonMode.line: a backend that cannot draw it throws an
UnsupportedError rather than filling.
Implementation
@override
void setPolygonMode(PolygonMode mode) {
polygonMode = mode;
commands.add(RecordedPolygonMode(mode));
}