Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-02-17 18:27:58 +05:30
parent aa44d5840c
commit 3ad22b16b3
3 changed files with 23 additions and 15 deletions
@@ -34,9 +34,9 @@ extension IterableX<T> on Iterable<T> {
}).skip(1).toList(growable: false);
}
///
/// Useful extension for [PlatformFile]
extension PlatformFileX on PlatformFile {
///
/// Converts the [PlatformFile] into [AttachmentFile]
AttachmentFile get toAttachmentFile => AttachmentFile(
path: path,
name: name,