flutterParameter method
Implementation
AstNode flutterParameter() {
Token name = consume(TokenType.identifier,
"Expect Flutter parameter type after 'parameter::'.");
if (name.lexeme.contains('EdgeInsets')) {
return parseEdgeInsets(name);
} else if (name.lexeme.contains('MainAxisAlignment')) {
return parseMainAxisAlignment(name);
} else if (name.lexeme.contains('CrossAxisAlignment')) {
return parseCrossAxisAlignment(name);
} else {
throw error(name, "Unknown Flutter parameter type: ${name.lexeme}");
}
}