cast<T> method

FunctionParamWithValue<T> cast<T>()

Implementation

FunctionParamWithValue<T> cast<T>() {
  if (value! is T) {
    throw Exception('Invalid cast');
  }
  return FunctionParamWithValue<T>(
    value: value as T,
    name: name,
    type: type,
    indexed: indexed,
  );
}