getBuildMethod function

MethodDeclaration? getBuildMethod(
  1. ClassDeclaration node
)

Implementation

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