toDeclStmt method

DeclareFunctionStmt toDeclStmt(
  1. String name, {
  2. List<TypeParameter> typeParameters = const [],
})

Implementation

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