componentCount property

int get componentCount

Gets the number of connected components

Implementation

int get componentCount => connectedComponents.length;