fromValue static method

PMDarwinAssetCollectionType? fromValue(
  1. int? value
)

Implementation

static PMDarwinAssetCollectionType? fromValue(int? value) {
  switch (value) {
    case 1:
      return PMDarwinAssetCollectionType.album;
    case 2:
      return PMDarwinAssetCollectionType.smartAlbum;
  }

  return null;
}