builder property
_Builder
builder
final
This function allows you to create custom widgets and retrieve a list of entities List<FileSystemEntity>.
builder: (context, snapshot) {
return ListView.builder(
itemCount: snapshot.length,
itemBuilder: (context, index) {
return Card(
child: ListTile(
leading: FileManager.isFile(snapshot[index])
? Icon(Icons.feed_outlined)
: Icon(Icons.folder),
title: Text(FileManager.basename(snapshot[index])),
onTap: () {
if (FileManager.isDirectory(snapshot[index]))
controller.openDirectory(snapshot[index]);
},
),
);
},
);
},
Implementation
final _Builder builder;