DbLensValueRenderer typedef
DbLensValueRenderer =
Widget Function(BuildContext context, Object? value, DbLensTheme theme)
Hook untuk render nilai sel kustom (mis. BLOB gambar, epoch timestamp).
Default: DbLensValueFormat.format/DbLensValueFormat.color dipakai oleh DbLensTableView/DbLensListView bila DbLensValueRenderer tidak diisi. Konsumen bisa menimpanya tanpa fork widget:
DbLensTableView(
rows: rows,
columns: columns,
valueRenderer: (context, value, theme) {
if (value is int && value > 1e12) return Text(formatEpoch(value));
return Text(DbLensValueFormat.format(value));
},
)
Implementation
typedef DbLensValueRenderer = Widget Function(
BuildContext context,
Object? value,
DbLensTheme theme,
);