AssetPathEntity constructor

AssetPathEntity({
  1. required String id,
  2. required String name,
  3. int albumType = 1,
  4. DateTime? lastModified,
  5. RequestType type = RequestType.common,
  6. bool isAll = false,
  7. PMFilter? filterOption,
  8. @Deprecated('Use `albumTypeEx.darwin.type` instead. ' 'This feature was deprecated after v3.1.0') PMDarwinAssetCollectionSubtype? darwinSubtype,
  9. @Deprecated('Use `albumTypeEx.darwin.subtype` instead. ' 'This feature was deprecated after v3.1.0') PMDarwinAssetCollectionType? darwinType,
  10. AlbumType? albumTypeEx,
})

Implementation

AssetPathEntity({
  required this.id,
  required this.name,
  this.albumType = 1,
  this.lastModified,
  this.type = RequestType.common,
  this.isAll = false,
  PMFilter? filterOption,
  @Deprecated(
    'Use `albumTypeEx.darwin.type` instead. '
    'This feature was deprecated after v3.1.0',
  )
  this.darwinSubtype,
  @Deprecated(
    'Use `albumTypeEx.darwin.subtype` instead. '
    'This feature was deprecated after v3.1.0',
  )
  this.darwinType,
  this.albumTypeEx,
}) : filterOption = filterOption ??= FilterOptionGroup();