defineVariable method

Statement defineVariable(
  1. String name, {
  2. List<DocComment> docComments = const [],
  3. List<Annotation> annotations = const [],
  4. bool static = false,
  5. Modifier modifier = Modifier.var$,
  6. Type? type,
  7. 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,
    );