Create a task. taskId will be set by the system.
Optionally you can specify a category
name.
Source
TimelineTask({String category: 'Dart'})
: _taskId = _getNextAsyncId(),
category = category {
if (category is! String) {
throw new ArgumentError.value(category,
'category',
'Must be a String');
}
}