CustomRefFactory<T> typedef
CustomRefFactory<T> =
({T Function() get, void Function(T) set}) Function(void track(), void trigger())
Factory function for creating a custom ref.
Receives track and trigger functions, returns get and set methods.
Implementation
typedef CustomRefFactory<T> = ({T Function() get, void Function(T) set})
Function(
void Function() track,
void Function() trigger,
);