isUpdate property

bool get isUpdate

Whether this screen is in update/edit mode (payload is non-null).

Implementation

bool get isUpdate => widget.payload != null;