getUrlFilename method

String getUrlFilename(
  1. {ImageSize? imageSize}
)

Returns just the filename of the url to display this image.

See also getUrl.

Implementation

String getUrlFilename({
  final ImageSize? imageSize,
}) {
  final ImageSize bestImageSize = imageSize ?? size ?? ImageSize.UNKNOWN;
  return isMain
      ? _getMainUrlFilename(bestImageSize)
      : _getRawUrlFilename(bestImageSize);
}