link<T> static method
A link affordance over a URL/reference.
Implementation
static ReadableColumn<T> link<T>(
String label, {
required String Function(T v) text,
String Function(T v)? href,
void Function(T v)? onTap,
double? width,
int flex = 1,
}) =>
ReadableColumn<T>(
label,
type: ReadableColumnType.link,
width: width,
flex: flex,
sortKey: (v) => text(v),
cell: (ctx, v) => ReadableCells.link(text(v), onTap: onTap == null ? null : () => onTap(v)),
);