cast<T> method
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,
);
}