isUrlExit method

bool isUrlExit(
  1. String url
)

Checks if a task with the given URL exists.

Implementation

bool isUrlExit(String url) {
  return allTasks.where((task) => task.uri.toString() == url).isNotEmpty;
}