setArgsFactory method
Sets the factory function used to create arguments.
This method is an alternative to setArgs and allows for dynamic argument creation.
Implementation
void setArgsFactory(covariant ArgsFactory<Args> argsFactory) =>
_argsFactory = argsFactory;