Can this API be used?
https://api.dartlang.org/docs/releases/latest/path/Builder.html
basename()