setHandler<T> abstract method
void
setHandler<T>({})
Sets a handler for a specific topic. If initialData is provided, it will be used as the initial data for the topic.
Implementation
void setHandler<T>({
T? initialData,
List<String>? paths,
String? separator,
required Handler<T> handler,
});