defineVariable method
Statement
defineVariable(
- String name, {
- List<
DocComment> docComments = const [], - List<
Annotation> annotations = const [], - bool static = false,
- Modifier modifier = Modifier.var$,
- Type? type,
- Expression? value,
Implementation
Statement defineVariable(String name,
{List<DocComment> docComments = const [],
List<Annotation> annotations = const [],
bool static = false,
Modifier modifier = Modifier.var$,
Type? type,
Expression? value}) =>
VariableDefinition(
name,
docComments: docComments,
annotations: annotations,
static: static,
modifier: modifier,
type: type,
value: this,
);