getBuildMethod function
MethodDeclaration?
getBuildMethod(
- ClassDeclaration node
Implementation
MethodDeclaration? getBuildMethod(ClassDeclaration node) => node.members
.whereType<MethodDeclaration>()
.firstWhereOrNull((member) => member.name.lexeme == 'build');