fromAst static method

StringLiteral? fromAst(
  1. Map? ast
)

Implementation

static StringLiteral? fromAst(Map? ast) {
  if (ast != null &&
      ast['type'] == astNodeNameValue(AstNodeName.StringLiteral)) {
    return StringLiteral(ast['value'], ast: ast);
  }
  return null;
}