name property

String? name

Gets the name of the file.

For links this will be either the provided name or the url.

Implementation

String? get name {
  if (content is XFile) {
    return (content as XFile).name;
  } else if (content is XUri) {
    return (content as XUri).name;
  } else if (content is GiphyGif) {
    return (content as GiphyGif).title;
  } else {
    return null;
  }
}