imageFilename method

String imageFilename(
  1. String? main
)

获得图片的文件名 >>>

Implementation

String imageFilename(String? main) {
  if (_library == null) {
    throw Exception('Need run setup at first or use imageFilenameAsync');
  }

  final String uuid = main ?? Uuid().v4();
  return _image + uuid;
}