ContainerItem.fromMap constructor
ContainerItem.fromMap(
- Map map
Creates an item from the normalized platform-channel payload.
Implementation
ContainerItem.fromMap(Map<dynamic, dynamic> map)
: relativePath = nativeRequireString(map, 'relativePath'),
downloadStatus = parseDownloadStatus(
nativeReadNullableString(map, 'downloadStatus'),
),
isDownloading = nativeReadBool(map, 'isDownloading'),
isUploaded = nativeReadBool(map, 'isUploaded'),
isUploading = nativeReadBool(map, 'isUploading'),
hasUnresolvedConflicts = nativeReadBool(
map,
'hasUnresolvedConflicts',
),
isDirectory = nativeReadBool(map, 'isDirectory');