argument<T> method

T argument<T>(
  1. String name
)

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'),
    };