the signature for signal container is; SignalContainer<T, Arg, S extends ReadonlySignalMixin<T>>
However, looking at the actual code, T is never actually used, and actually resolves to dynamic by my code lens.
For the sake of easier use and extension, I say the erroneous generic can be removed entirely, and subclasses can reapply it if needed.
Well, unless there's a real use for it, in which case please let me know.
Certainly not extensions, as we can extract the T with ease
extension <T, Arg, S extends ReadonlySignalMixin<T>> on SignalContainer<Arg, S> {
T valueOf(Arg arg) => this(arg).value;
}
the signature for signal container is;
SignalContainer<T, Arg, S extends ReadonlySignalMixin<T>>However, looking at the actual code,
Tis never actually used, and actually resolves todynamicby my code lens.For the sake of easier use and extension, I say the erroneous generic can be removed entirely, and subclasses can reapply it if needed.
Well, unless there's a real use for it, in which case please let me know.
Certainly not extensions, as we can extract the T with ease