layerCount property

int get layerCount

Returns the number of layers in the document.

Implementation

int get layerCount => layers?.length ?? 0;