isSingle property

bool isSingle

check has one element.

Implementation

bool get isSingle => length == 1;