getLastPage method

int? getLastPage()

Retrieves the last page number from the storage.

This method reads the last page number stored in the local storage using the GetStorage package and returns it as an integer. If the value is not found, it returns null.

Returns:

  • int?: The last page number if it exists in the storage, otherwise null.

Implementation

int? getLastPage() => GetStorage().read(_StorageConstants().lastPage);