Update extension.dart

This commit is contained in:
Dawid
2021-11-09 13:21:50 +01:00
committed by GitHub
parent a15636da91
commit 914c9cc137
@@ -46,7 +46,7 @@ extension IterableX<T> on Iterable<T> {
extension PlatformFileX on PlatformFile {
/// Converts the [PlatformFile] into [AttachmentFile]
AttachmentFile get toAttachmentFile => AttachmentFile(
path: path,
path: kIsWeb ? null : path,
name: name,
bytes: bytes,
size: size,