index property

int get index

Get the index of the file or directory in the parent directory

Implementation

int get index => parent.listFilesSync.map((x) => x.id).toList().indexOf(id);