helpers library

Extensions

LintRuleNodeRegistryExtensions on LintRuleNodeRegistry

Functions

getAllInnerHookExpressions(AstNode node) List<InvocationExpression>
getAllReturnExpressions(FunctionBody body) List<Expression?>
Returns all return expressions of a function body.
getBuildMethod(ClassDeclaration node) → MethodDeclaration?
isWidgetClass(ClassDeclaration node) bool
maybeGetSingleReturnExpression(FunctionBody body) → Expression?
maybeHookBuilderBody(InstanceCreationExpression node) → FunctionBody?
Given an instance creation, returns the builder function body if the node is a HookBuilder.
typeParametersString(Iterable<TypeParameter> typeParameters, {bool withBounds = false}) String