getSuggestedName method

  1. @override
Future<String?> getSuggestedName()
override

Returns suggested file name for the contents (if available). This is the best guess that can be provided from reader. You may be able to get more accurate name after receiving the DataReaderFile through getFile.

Implementation

@override
Future<String?> getSuggestedName() async {
  for (final item in items) {
    final name = await item.getSuggestedName();
    if (name != null) {
      return name;
    }
  }
  return null;
}