dart format

This commit is contained in:
2026-05-08 20:12:40 +02:00
parent 9e139b5704
commit 3b8da1d3d6
295 changed files with 6404 additions and 4161 deletions
+6 -5
View File
@@ -1,9 +1,10 @@
import 'package:flutter/material.dart';
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,
);
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,
);
}