imageDetailsOrNull property
ImageDetails?
get
imageDetailsOrNull
Returns ImageDetails if this data is ImageDetails, otherwise null.
Implementation
ImageDetails? get imageDetailsOrNull => isImageDetails ? imageDetails : null;