toDeclStmt method
Implementation
DeclareFunctionStmt toDeclStmt(
String name, {
List<TypeParameter> typeParameters = const [],
}) {
return DeclareFunctionStmt(
name,
params,
statements,
type: type,
typeParameters: typeParameters,
);
}