13 lines
479 B
Dart
13 lines
479 B
Dart
// import 'structs.dart';
|
|
// import 'package:file_saver/file_saver.dart';
|
|
|
|
// class Attachmentdownload {
|
|
// Future<void> saveFile(AttachmentResponse attachment) async {
|
|
// await FileSaver.instance.saveFile(
|
|
// name: attachment.name.toString().substring(0, attachment.name.toString().lastIndexOf('.')),
|
|
// bytes: attachment.data,
|
|
// ext: attachment.name.toString().substring(attachment.name.toString().lastIndexOf('.')+1)
|
|
// );
|
|
// }
|
|
// }
|