imageFileType property

Future<ImageFileType> get imageFileType

File type for the image asset, use it for some special type detection. 图片资源的类型,用于某些特殊类型的判断。

Implementation

Future<ImageFileType> get imageFileType async {
  if (_lockImageTypes[this] != null) {
    return _lockImageTypes[this]!.future;
  }
  return _getType();
}