Skip to content

[cross_file] Using the name specified in the constructor for the file backed by a dart.io File  #87808

@LefebvreIlyas

Description

@LefebvreIlyas

Use case

Hello everyone,

I use in my application files from Firebase and from the filesystem. And for the files from Firebase I specify as path the download url and the specific name, however the implementation backed by a dart:io File does not take into account the name and returns it as follows:

_file.path.split(Platform.pathSeparator).last;

Proposal

Would it be reasonable to change the implementation to

_name ?? _file.path.split(Platform.pathSeparator).last;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions