Skip to content

inline Ambiguous return value. #62277

@stephane-archer

Description

@stephane-archer
  Future<Iterable<String>?> _filePickFCPLibraries( // try to inline _filePickFCPLibraries
      AppLocalizations appLocalizations) async {
    List<MacosFilePickerPath>? selectedItems = await MacosFilePicker().pick(
      MacosFilePickerMode.fileAndFolder,
      allowsMultiple: true,
      allowedFileExtensions: ["fcpbundle"],
      dialogTitle: appLocalizations.filePickerInstruction,
    );
    if (selectedItems == null) {
      return null;
    }
    return selectedItems.map(
      (selectedItem) {
        return selectedItem.path;
      },
    );
  }

  Future<void> _onImportLibraries(
      BuildContext context, AppLocalizations appLocalization) async {
    await _importNewFinalCutLibraries(
      context: context,
      getSelectedPath: () {
        return _filePickFCPLibraries(appLocalization);
      },
    );
  }

Ambiguous return value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions