isDismissible property

bool get isDismissible

Returns true if the topmost overlay is dismissible.

Implementation

bool get isDismissible =>
    _overlays.isNotEmpty ? _overlays.last.isDismissible : true;