bro i think this method Workmanager().isScheduledByUniqueName() is not define in Workmanager class.you can schedule task by this 2 methods.