isLeaf property

bool isLeaf

A state is a leaf state if it has no child states.

Implementation

bool get isLeaf => childStateDefinitions.isEmpty;