simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -4,7 +4,6 @@ class ListViewUtil {
|
||||
static ListView fromList<T>(List<T>? items, Widget Function(T item) map) =>
|
||||
ListView.builder(
|
||||
itemCount: items?.length ?? 0,
|
||||
itemBuilder: (context, index) =>
|
||||
items != null ? map(items[index]) : null,
|
||||
itemBuilder: (context, index) => map(items![index]),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user