sendFiles static method
Future<void>
sendFiles({
- required List<
String> filesPath, - required BuildContext context,
- required dynamic sendFileMessage({
- required String filePath,
Implementation
static Future<void> sendFiles({
required List<String> filesPath,
required BuildContext context,
required Function({required String filePath}) sendFileMessage,
}) async {
for (final filePath in filesPath) {
await sendFileMessage(filePath: filePath);
await Future.delayed(const Duration(microseconds: 300));
}
}