Provides equality.
@override bool operator ==(final Object other) { if (other is RandomTask) { return other.getDuration == getDuration && other.onTick == onTick; } return super == other; }