argumentsAs<T> method

T argumentsAs<T>()

Implementation

T argumentsAs<T>() {
  final value = arguments;
  if (value is! T) throw FormatException('Expected arguments of type $T');
  return value;
}