getMethods method
Returns all top-level methods defined in the package.
Example
final methods = resource.getMethods();
methods.forEach((m) => print('Method: ${m.name}'));
Implementation
@override
List<Method> getMethods() => _methodDeclarations.map((d) => Method.declared(d, ProtectionDomain.system())).toList();