findMethod method
Finds a method by its name
.
Throws a WinmdException if the method is not found.
Implementation
MethodDef findMethod(String name) =>
methods.where((m) => m.name == name).firstOrNull ??
(throw WinmdException('Method "$name" not found in $this'));