Gets the metadata of the task.
Returns: The FullMetadata or null.
FullMetadata? get metadata => _metadata;