A callback used to aggregate the current sample values.
typedef Collect<T extends Collector> = FutureOr<void> Function(T collector);