argument<T> method
Implementation
T argument<T>(String name) => switch (T) {
const (String) => stringArgument(name) as T,
const (int) => intArgument(name) as T,
const (double) => doubleArgument(name) as T,
const (Score) => scoreArgument(name) as T,
const (Entity) => entityArgument(name) as T,
const (Location) => locationArgument(name) as T,
_ => throw ArgumentError('Unsupported argument type $T'),
};